This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ARM and info registers



It's conventional for plain "info registers" to print all the non-floating 
point registers on the machine.

However, on the ARM it would be useful to leave the banked registers out 
of this list as well.  That is to make "info registers" print only r0-r15 
+ CPSR, and to make "info all-registers" also print the various banked 
registers as well as any floating point ones.

Ie, we currently get (well, with my code in development):

(gdb) info registers
r0             0x0      0
r1             0x0      0
r2             0xefbfc9c8       -272643640
r3             0x2      2
r4             0x1eef80 2027392
r5             0x0      0
r6             0x11fbb8 1178552
r7             0x22d1c0 2281920
r8             0x1cf6f0 1898224
r9             0x0      0
r10            0x1b3c18 1784856
r11            0xefbfca1c       -272643556
r12            0x1bbd98 1818008
sp             0xefbfca10       -272643568
lr             0x80a34  526900
pc             0x202a4a9c       539642524
cpsr           0x40000010       1073741840
spsr_svc       0x22d444 2282564
spsr_abt       0x22d4f4 2282740
spsr_und       0x22d5a8 2282920
spsr_irq       0x22d694 2283156
spsr_fiq       0x22d880 2283648
fpsr           0x0      0
fpcr           0x22dd68 2284904
fpsid          0xed2458 15541336
fpscr          0xed2490 15541392
fpexc          0x22d328 2282280
r8_usr         0x1cf6f0 1898224
r9_usr         0x0      0
r10_usr        0x1b3c18 1784856
r11_usr        0xefbfca1c       -272643556
r12_usr        0x1bbd98 1818008
r13_usr        0xefbfca10       -272643568
r14_usr        0x80a34  526900
r15_raw        0x202a4a9c       539642524
r13_svc        0x22d3d4 2282452
r14_svc        0x22d40c 2282508
r13_abt        0x22d480 2282624
r14_abt        0x22d4b8 2282680
r13_und        0x22d530 2282800
r14_und        0x22d56c 2282860
r13_irq        0x22d5e0 2282976
r14_irq        0x22d658 2283096
r8_fiq         0x22d6d0 2283216
r9_fiq         0x22d70c 2283276
r10_fiq        0x22d748 2283336
r11_fiq        0x22d784 2283396
r12_fiq        0x22d7c8 2283464
r13_fiq        0x22d804 2283524
r14_fiq        0x22d840 2283584

Most of these are garbage, since they aren't really available for the 
current target interface (I'm still working on a way to suppress them).  
I'd like to make "info registers" print just

(gdb) info registers
r0             0x0      0
r1             0x0      0
r2             0xefbfc9c8       -272643640
r3             0x2      2
r4             0x1eef80 2027392
r5             0x0      0
r6             0x11fbb8 1178552
r7             0x22d1c0 2281920
r8             0x1cf6f0 1898224
r9             0x0      0
r10            0x1b3c18 1784856
r11            0xefbfca1c       -272643556
r12            0x1bbd98 1818008
sp             0xefbfca10       -272643568
lr             0x80a34  526900
pc             0x202a4a9c       539642524
cpsr           0x40000010       1073741840

Which is the useful set for the majority of the time.

Would a change to the "specification" be acceptable here?

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]