gpt4 book ai didi

linux - 在 emacs 中使用 gdb 的 valgrind vgdb

转载 作者:太空狗 更新时间:2023-10-29 12:19:09 26 4
gpt4 key购买 nike

我正在尝试将 valgrind vgdb 与命令一起使用:valgrind --vgdb-error=0 ./a.out [args] .

当我运行 target remote | /usr/lib64/valgrind/../../bin/vgdb 时在 emacs gdb 中我得到 Non-stop mode requested, but remote does not support non-stop错误。

emacs 运行的 gdb 命令是:gdb -i=mi a.out .

我的 valgrind、gdb 和 emacs 版本:valgrind-3.7.0、GNU gdb (GDB) SUSE (7.5.1-2.5.1) 和 GNU Emacs 24.2.1。

有没有办法解决这个问题,或者我的 gdb、valgrind 或 emacs 版本无法处理我正在尝试做的事情?

最佳答案

目前 valgrind gdbserver 不支持 non-stop 模式,它是难以实现(参见 https://bugs.kde.org/show_bug.cgi?id=328081)

所以,在使用emacs的gdb模式时,非停止模式是必须关闭的。 M-x 自定义选项 gdb-不间断设置将其关闭 + 应用并保存

之后,emacs + vgdb + valgrind 应该一起正常工作。

关于linux - 在 emacs 中使用 gdb 的 valgrind vgdb,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15274798/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com