e***e 发帖数: 168 | 1 any one knows how to skip a line when debugging?
for example, i want to press n to execute line 1, and skip line 2 (not
execute line 2), and execute line 3. Can gdb do that?
line 1,
line 2,
line 3
thanks! |
k****f 发帖数: 3794 | 2 你说哪个debugger可以做到呢?
【在 e***e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : any one knows how to skip a line when debugging? : for example, i want to press n to execute line 1, and skip line 2 (not : execute line 2), and execute line 3. Can gdb do that? : line 1, : line 2, : line 3 : thanks!
|
N****w 发帖数: 21578 | 3 直接改 IP 寄存器
【在 k****f 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 你说哪个debugger可以做到呢?
|
k****f 发帖数: 3794 | 4 那你得知道改到哪儿去呀。。。
一不小心改错了,程序就飞了
【在 N****w 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 直接改 IP 寄存器
|
N****w 发帖数: 21578 | 5 当然要看着源码和对应的汇编代码改了
或者在下一行设个 breakpoint,就知道 breakpoint 那里的 IP 是啥了
【在 k****f 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 那你得知道改到哪儿去呀。。。 : 一不小心改错了,程序就飞了
|
e***e 发帖数: 168 | 6 So, maybe it's impossible. Another simpler question: how can I change
variable values during debugging? I remember in Viual studio C++ enviroment
you can play this trick.
Can this be done in gdb? |
l*******G 发帖数: 1191 | 7 use advance
help advance |
R****a 发帖数: 199 | 8 like "set a=10"
where a is your variable name and 10 is your new value of the variable.
enviroment
【在 e***e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : So, maybe it's impossible. Another simpler question: how can I change : variable values during debugging? I remember in Viual studio C++ enviroment : you can play this trick. : Can this be done in gdb?
|