beautypg.com

HP gnu source-level debugger 5992-4701 User Manual

Page 81

background image

The following example shows the disassembly of a range of addresses of HP PA-RISC
2.0 code:

((gdb)) disas 0x32c4 0x32e4
Dump of assembler code from 0x32c4 to 0x32e4:
0x32c4 : addil 0,dp
0x32c8 : ldw 0x22c(sr0,r1),r26
0x32cc : ldil 0x3000,r31
0x32d0 : ble 0x3f8(sr4,r31)
0x32d4 : ldo 0(r31),rp
0x32d8 : addil -0x800,dp
0x32dc : ldo 0x588(r1),r26
0x32e0 : ldil 0x3000,r31
End of assembler dump.

Some architectures have more than one commonly-used set of instruction mnemonics
or other syntax.

set disassembly-flavor

instruction-set

Select the instruction set to use when
disassembling the program via the
disassemble

or x/i commands.

Currently this command is only defined for the
Intel x86 family. You can set instruction-set
to either intel or att. The default is att, the
AT&T flavor used by default by Unix assemblers
for x86-based targets.

7.4 Source and machine code

81