disassemblers for Sun

Jim Battan battan at tc.fluke.com
Wed Jan 4 01:00:24 AEST 1989


adb can still handle Mr. Kerchen's problem.  The adb map contains the
start of the text space ($m).  Use something like this to get the start:

ENTRY=`echo '$m' | adb $1 - | sed -n '2s/b1 = \([!-~]*\).*/\1/p'`;;

Then, use something like this to disassemble everything from the entry
point to the end of the text segment:

echo "${ENTRY-<e},-1?ia" |
    adb $1 - |
	sed '/^text address not found/ { s/.*//;q; }'

Wrap this all in a shell script, and "there it is"!  This is useful on any
Sun architecture (the adb maintainers do the porting work for you).  The
only problem is that it starts doing weird things around data that aren't
real machine code.  But you can usually tell what's real and what's not.

Jim Battan (+1 206 356 6469)
battan at tc.fluke.COM || {sun,uw-beaver,decvax!microsoft}!fluke!battan



More information about the Comp.sys.sun mailing list