Emacs GDB 不会在源代码缓冲区中显示当前程序光标

emacs gdb does not show the current program cursor in source code buffer

本文关键字:显示 前程 程序 光标 缓冲区 GDB 源代码 Emacs      更新时间:2023-10-16

我认为当 gdb-many-window 打开时,主源代码缓冲区应该通过箭头显示当前程序光标的位置 https://www.gnu.org/software/emacs/manual/html_node/emacs/GDB-User-Interface-Layout.html

但就我而言,只有 gdb 缓冲区显示代码的位置。主源代码缓冲区不显示任何内容。

有人碰巧遇到同样的问题吗?

我找到了原因。我必须使用 GDB --全名这是 emacs 2.24。虽然我不知道为什么这个标志很重要。