gdb没有CodeWarrior强大,但是也提供了查看寄存器的命令:
(gdb) info register r1
r1 0xbffffb40 3221224256
(gdb) info registers
r0 0x1000052c 268436780
r1 0xbffffb40 3221224256
r2 0x48026ea0 1208118944
r3 0x14 20
r4 0xfef2d90 267333008
r5 0x0 0
r6 0x1 1
r7 0xff4f67c 267712124
r8 0x202d000 33738752
r9 0x1 1
r10 0x0 0
r11 0xbffffa70 3221224048
r12 0x20000082 536871042
r13 0x100189d0 268536272
r14 0x0 0
r15 0x0 0
r16 0x0 0
r17 0x0 0
r18 0x0 0
r19 0x0 0
r20 0x0 0
r21 0x0 0
r22 0x0 0
---Type to continue, or