disassemble (gdb mode only)

Disassemble and display machine instructions.

Syntax

disassemble [address] | [address1 address2]

Parameters

address

A program counter value. The debugger dumps the function around this value.

address1 address2

A range of addresses to dump. address1 is inclusive, address2 is exclusive.

Description

This command displays a range of memory as machine instructions.

To display the memory range of the function surrounding the selected frame's program counter, use this command without a parameter.

To display the memory range of the function surrounding a specific program counter value, specify address.

To display a range of addresses, specify the first address in the range, address1, and the address immediately following the range, address2. Notice that address2 is not included in the range.

Example

(idb)  disassemble 0x8048427 0x8048447
Dump of assembler code for function int main(void):
0x08048427 <main+15>:   flds     0x8048698
0x0804842d <main+21>:   fstps    -20(%ebp)
0x08048430 <main+24>:   movl     $-1, -16(%ebp)
0x08048437 <main+31>:   movl     $0xa, -12(%ebp)
0x0804843e <main+38>:   addl     $0x0, %esp
0x08048441 <main+41>:   movlr    -12(%ebp), %eax
0x08048444 <main+44>:   movl     %eax, (%esp)
0x08048447 <main+47>:   call     foo
End of assembler dump.
(idb) 

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.