Path: 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 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