//设置halt
(gdb) set {int}0x400b0000 = 0x1
(gdb) load
//设置下一个pc指针的值
(gdb) set {int}0x400b2000 = 0x80
(gdb) x /2x 0x400b2000
0x400b2000: 0x00000080 0x00000084
(gdb) b main
Register 834 is not available
(gdb) set {int}0x400b0000 = 0x0
(gdb) c
2024-03-04 13:10:29
//设置halt
(gdb) set {int}0x400b0000 = 0x1
(gdb) load
//设置下一个pc指针的值
(gdb) set {int}0x400b2000 = 0x80
(gdb) x /2x 0x400b2000
0x400b2000: 0x00000080 0x00000084
(gdb) b main
Register 834 is not available
(gdb) set {int}0x400b0000 = 0x0
(gdb) c
下一篇:信号之abort函数