🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10014

Re: disassemblers for Sun

#10014
From: Jim Battan
Date: Tue, 03 Jan 1989 15:00
19 lines
1323 bytes
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@tc.fluke.COM || {sun,uw-beaver,decvax!microsoft}!fluke!battan
Technical Details
Message-ID: <6423@fluke.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
References: v7n67 message 18

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: battan@tc.fluke.com (Jim Battan)
Newsgroups: comp.sys.sun
Subject: Re: disassemblers for Sun
Message-ID: <6423@fluke.COM>
Date: 3 Jan 89 15:00:24 GMT
References: v7n67 message 18
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 19
Approved: Sun-Spots@rice.edu
Original-Date: 23 Dec 88 17:21:55 GMT
X-Sun-Spots-Digest: Volume 7, Issue 84, message 8 of 14