Article View: comp.sys.sun
Article #10066Disassembler
From: denis
Date: Wed, 04 Jan 1989 20:54
Date: Wed, 04 Jan 1989 20:54
15 lines
1083 bytes
1083 bytes
Here's a one-liner sh script I use to disassemble programs:
echo "${2-main},-1?ai" | adb $1 | sed "s/:.*:^I/:^I/;s/^I^I/^I/"
The "^I"s should be real tabs. The sed command just neatens up the output
of adb. To use the command, which I call "da", type
da to disassemble a.out
da prog to disassemble prog
da prog func to disassemble prog starting from subroutine
(symbol) func instead of from main.
Denis Howe uunet!mcvax!ukc!gec-rl-hrc!denis
G15 GEC Hirst Research Centre denis@uk.co.gec-rl-hrc
East La. Wembley MDDX HA9 7PP UK +44 (1) 908 9220
Technical Details
Message-ID:
<8812211637.aa10157@lemon.gec-rl-hrc.co.uk>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!husc6!rice!sun-spots-requestShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-lcc!ames!husc6!rice!sun-spots-request From: mcvax!gec-rl-hrc.co.uk!denis@uunet.uu.net (denis) Newsgroups: comp.sys.sun Subject: Disassembler Message-ID: <8812211637.aa10157@lemon.gec-rl-hrc.co.uk> Date: 4 Jan 89 20:54:37 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 15 Approved: Sun-Spots@rice.edu Original-Date: Wed, 21 Dec 88 16:36:00 GMT X-Sun-Spots-Digest: Volume 7, Issue 88, message 4 of 9