info registers (gdb mode only)

Print registers and their contents.

Syntax

info registers [ $register_name ]

Parameters

register_name

The name of a register.

Description

This command displays the contents of a register when you specify register_name, or all registers and their contents when you do not. This command enables you to examine sets of registers and individual registers.

Example

The following example shows how to examine sets of registers:

(idb) info registers $sp
$14 = (void *) 0xbfffe2cc 
(idb) info registers
$eax 0x1 1 
$ecx 0xbfffe42c -1073748948 
$edx 0xbfffe3b0 -1073749072 
$ebx 0xb74e7d98 -1219592808 
$esp [$sp] 0xbfffe2cc (void *) 0xbfffe2cc 
...

The following example shows two ways to examine the eax register:

(idb) info registers $eax
$eax           0x4 4
(idb) print $eax
$2 = 4

See Also


Submit feedback on this help topic

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