C/C++在 Emacs 23.1 中调试
我使用 gdb 7.0 版从 emacs 进行调试。从 emacs 启动时的 gdb 与从 shell 启动时的行为略有不同。差异点是:-
gdb 提示符,当从 emacs 启动时,不会识别当前目录中的文件(gdb 会话从中启动)。当您通过 gdb 运行应用程序时(使用run),您必须给出文件的完整绝对路径。当您从 shell 通过 gdb 启动应用程序时,情况并非如此。
箭头键(提供在 gdb 提示符下键入的最新命令)对于从 emacs 启动的 gdb 不起作用。相反,它在 emacs gdb 命令提示符中上下移动滚动。我在这里做错了什么吗??
感谢和问候
I use gdb version 7.0 for debugging from emacs. The gdb when launched from emacs behaves slighlty differently compared with one launched from the shell. The points of differences are :-
gdb prompt, when launched from emacs doesn't recogonize the files in the current directory (from which the gdb session is launched.) This very cumbersome as when you run the application through gdb (using run), you have to give the full absolute path of the file. This is not the case when you launch the application through gdb from shell.
The arrow keys (that give the most recent commands typed on the gdb prompt), doesn't work for gdb launched from emacs. Instead, it moves the scroll up and down in the emacs gdb command prompt. Am I doing anything wrong here.. ?
Thanks and regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)