由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Question: GDB debug C++ program in Unix
相关主题
一个关于GDB的问题刚电面完BLOOMBERG
need help about GDB求问"如何进行debug,有很多file的时候怎么办"
问个问题,关于gdb的R studio 进入debug状态后, 很慢 ? (转载)
gdb debug c++的问题debug error unable to automatically step into the server in VS 2013 on win 7
借人气问个C++问题有没有online python IDE(可以用来debug)
how to step over a line in code with gdb?linq在debug的时候看不出错误的地方啊。
VS里debug不work求教![合集] Debugging large macro
在 vim 里用 gdb (on Linux)请问在ASP.net中用Javascript的一个问题
相关话题的讨论汇总
话题: gdb话题: myfunction话题: function话题: c++话题: debug
进入Unix版参与讨论
1 (共1页)
h*****g
发帖数: 9
1
When I used gdb debug C++ program, I encountered the follow problem.
Source code: myprogram.cc
executable code: myprogram
I used CC compiler to compile.
****************************
> gdb myprogram
> break myprogram.cc:myfunction
(Here, myfunction is a function in myprogram.cc)
Function "myfunction" not defined.
****************************
So the problem is that gdb always gives me "Function "myfunction" not defined"
message when I try to set a breakpoint at that function.
Is there anyone can
f********h
发帖数: 149
2
did you turn on debug by -g in compliation?

【在 h*****g 的大作中提到】
: When I used gdb debug C++ program, I encountered the follow problem.
: Source code: myprogram.cc
: executable code: myprogram
: I used CC compiler to compile.
: ****************************
: > gdb myprogram
: > break myprogram.cc:myfunction
: (Here, myfunction is a function in myprogram.cc)
: Function "myfunction" not defined.
: ****************************

1 (共1页)
进入Unix版参与讨论
相关主题
请问在ASP.net中用Javascript的一个问题借人气问个C++问题
debug error unable to automatically step into the server in (转载)how to step over a line in code with gdb?
debug error unable to automatically step into the server in (转载)VS里debug不work求教!
R studio 进入debug状态后, 很慢 ? (转载)在 vim 里用 gdb (on Linux)
一个关于GDB的问题刚电面完BLOOMBERG
need help about GDB求问"如何进行debug,有很多file的时候怎么办"
问个问题,关于gdb的R studio 进入debug状态后, 很慢 ? (转载)
gdb debug c++的问题debug error unable to automatically step into the server in VS 2013 on win 7
相关话题的讨论汇总
话题: gdb话题: myfunction话题: function话题: c++话题: debug