Disassembler

denis mcvax!gec-rl-hrc.co.uk!denis at uunet.uu.net
Thu Jan 5 06:54:37 AEST 1989


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 at uk.co.gec-rl-hrc
East La. Wembley  MDDX  HA9 7PP  UK          +44 (1) 908 9220



More information about the Comp.sys.sun mailing list