Debugging with GDB Manual (5900-1473; WDB 6.2; January 2011)

Table Of Contents
Example 2 Sample Commands to Print CFM and PFS registers
Use the following command to print the PFS or ar64 register:
(gdb) info reg ar64
pfs: 0xc000000000000c20
(sor:0, sol:24, sof:32)
In the above example, 0xc000000000000c20 is the raw value and (sor:0, sol:24,
sof:32) is the format for identifying rotating registers, frames and locals.
You can change the value of the PFS register by using the following command:
(gdb) print $pfs = <value>
Use the following command to print the CFM register:
(gdb) info register cfm
cfm: 0xc20
(sor:0, sol:24, sof:32)
You can change the value of the CFM register by using the following command:
(gdb) print $cfm = <value>
In the above example, 0xc20 is the raw value and (sor:0, sol:24, sof:32) is
the format for identifying rotating registers, frames and locals.
14.41.2 Printing and setting NaT registers
On Integrity systems, following is the command to print the NaT bit corresponding to a
register:
print $natr<reg_nbr>
where, reg_nbr represents a register number.
Example 3 Sample Commands to Print NaT Registers
Following are sample commands to print NaT registers:
(gdb) p $natr32
$1 = 0 '\000'
(gdb) p $natr33
$2 = 0 '\000'
(gdb) p $natr39
$3 = 0 '\000'
You can set the NaT bit of a register using the following command:
(gdb) print $natr<reg_nbr> = <0/1>
Where 0 is used to unset and 1 is used to set the NaT register.
For example:
Use the following command to set the NaT bit of general register 14:
(gdb)print $natr14 = 1
14.41 Additional support for examining registers 245