denis@uunet.uu.net (denis) (01/05/89)
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