[求助]emacs的gdb-ui无法设置断点
-
- 帖子: 103
- 注册时间: 2009-08-25 0:38
[求助]emacs的gdb-ui无法设置断点
在emacs里面进行c语言的调试,进入gdb-many-windows模式后,按理来说,在代码窗口的某一行代码前面点击鼠标会出现断点,再点一下断点消失。可是,我在代码前面怎么点都没有断点出来。哪位知道是啥原因,请赐教!
-
- 帖子: 109
- 注册时间: 2009-12-06 21:23
Re: [求助]emacs的gdb-ui无法设置断点
1. do you compile c code with gcc -g, so that gdb say load the symbol correctly?
if yes, then
2. can you run gdb under bash and set breakpoint like "b main"?
if yes, then
3. do you have source file under the same directory of executable file?
if yes, then
4. can you set breakpoint in Emacs by command line mode like "b main" (not click mouse approach), and see the little RED dot before main() function?
if yes, then you can use click to set breakpoint
else, sorry, I cannot help you more than that, because I don't know the inner work of gud
if yes, then
2. can you run gdb under bash and set breakpoint like "b main"?
if yes, then
3. do you have source file under the same directory of executable file?
if yes, then
4. can you set breakpoint in Emacs by command line mode like "b main" (not click mouse approach), and see the little RED dot before main() function?
if yes, then you can use click to set breakpoint
else, sorry, I cannot help you more than that, because I don't know the inner work of gud