gdb 在 Windows 上的 emacs 中不显示代码
我昨天问了一个问题,导致了这个新问题。 基本上我正在安装一个QT sdk ,
它要求我卸载MSYS我做了&我对 emacs/gdb 交互进行了测试。
这是我正在使用的 gdb_init 文件。在卸载 MSYS 之前,这工作正常。现在,断点正在工作,但我没有在另一个窗口中获取代码,断点的左边距上有一个小红点。
file ~/../sandbox/trunk/current-win32/debug-bin/sm.exe
dir ~/../sandbox/trunk/src/mgr/view
dir ~/../sandbox/trunk/src/mgr/view/appstatus
dir ~/../sandbox/trunk/src/mgr/controller
break widget.cpp:176
break book.cpp:72
break TcpClient.cpp:660
break mainwidget.cpp:1474
我在 emacs 中运行的步骤
M-x gdb
source ~/gdb_init
run
(It will break but not give me the code along with the breakpoint)
你知道我做错了什么吗?
I asked a question just yesterday which caused this new issue. gdb within emacs on Windows
Basically I was installing a QT sdk which asked me to uninstall MSYS which I did & I hosed my emacs/gdb interaction.
Here is the gdb_init file that I'm using. Before the uninstall of MSYS this worked fine. Now after it, the breakpoints are working but I am not getting my code in another window with the little red dot on the left margin for a breakpoint.
file ~/../sandbox/trunk/current-win32/debug-bin/sm.exe
dir ~/../sandbox/trunk/src/mgr/view
dir ~/../sandbox/trunk/src/mgr/view/appstatus
dir ~/../sandbox/trunk/src/mgr/controller
break widget.cpp:176
break book.cpp:72
break TcpClient.cpp:660
break mainwidget.cpp:1474
The steps I'm running in emacs
M-x gdb
source ~/gdb_init
run
(It will break but not give me the code along with the breakpoint)
Any ideas what I'm doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明,我使用的是 Cygwin 版本的 gdb,并且它已经存在于我的系统 PATH 中。由于某种原因,这没有成功,我在 Emacs 中的 gdb 中遇到了错误。一旦我安装了 MSYS(mingw) & gdb 安装在他们的下载页面上,并将其放入我的系统路径中,然后我就恢复并运行了。
It turns out I was using the Cygwin version of gdb and had that in my system PATH. For some reason that didn't work out and I was getting errors in gdb within Emacs. Once I installed MSYS(mingw) & the gdb install on their download page and put that in my system PATH then I was back up and running.
我遇到了完全相同的问题:windows emacs、cygwin gdb 和源缓冲区未使用“=>”进行更新显示代码位置的指针。从这里下载 mingw gdb.exe: http://sourceforge.net/projects/mingw/files /OldFiles/and 选择带有 Mx gdb 的 gdb,它工作得很好。
I had the exact same problem: windows emacs, cygwin gdb, and the source buffer did not update with the "=>" pointer to show the code location. Downloaded mingw gdb.exe from here: http://sourceforge.net/projects/mingw/files/OldFiles/and selected that gdb with M-x gdb and it worked perfectly.