由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - how to step over a line in code with gdb?
相关主题
how to remove condition for a breakpoint in gdb?怎样diff两个文件的最后100行?
在 vim 里用 gdb (on Linux)help on a simple smtp server setup
netbeans问题借人气问个C++问题
gdb cann't display variable valueVS里debug不work求教!
a dummy OS question (转载)问个问题,关于gdb的
freebsd使用一个季度Question: GDB debug C++ program in Unix
Grep 能作这个吗?有没有大牛给讲下javascript的内存泄漏
怎么卸载ubuntu及重新分区?刚电面完BLOOMBERG
相关话题的讨论汇总
话题: line话题: gdb话题: execute话题: skip话题: step
进入Linux版参与讨论
1 (共1页)
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 的大作中提到】
: 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 的大作中提到】
: 你说哪个debugger可以做到呢?
k****f
发帖数: 3794
4
那你得知道改到哪儿去呀。。。
一不小心改错了,程序就飞了

【在 N****w 的大作中提到】
: 直接改 IP 寄存器
N****w
发帖数: 21578
5
当然要看着源码和对应的汇编代码改了
或者在下一行设个 breakpoint,就知道 breakpoint 那里的 IP 是啥了

【在 k****f 的大作中提到】
: 那你得知道改到哪儿去呀。。。
: 一不小心改错了,程序就飞了

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 的大作中提到】
: 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?

1 (共1页)
进入Linux版参与讨论
相关主题
刚电面完BLOOMBERGa dummy OS question (转载)
求问"如何进行debug,有很多file的时候怎么办"freebsd使用一个季度
R studio 进入debug状态后, 很慢 ? (转载)Grep 能作这个吗?
debug error unable to automatically step into the server in VS 2013 on win 7怎么卸载ubuntu及重新分区?
how to remove condition for a breakpoint in gdb?怎样diff两个文件的最后100行?
在 vim 里用 gdb (on Linux)help on a simple smtp server setup
netbeans问题借人气问个C++问题
gdb cann't display variable valueVS里debug不work求教!
相关话题的讨论汇总
话题: line话题: gdb话题: execute话题: skip话题: step