linux - GDB调试时如何显示代码窗口

标签 linux gdb

谁能告诉我在通过GDB 调试时使用哪个命令来显示源代码。 会有很大帮助。

最佳答案

您可以使用 Ctrl+x A 键绑定(bind)进入或离开带有代码窗口的 TUI 模式。或者使用layout src命令进入TUI模式。看其他途易key bindingscommands .

关于linux - GDB调试时如何显示代码窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19264899/

相关文章:

linux - 在 linux (debian) 中运行 docker 和 nodemcu-build 时出错

c++ - 如何中断epoll_pwait来捕捉信号

linux - 如果绑定(bind)到特定接口(interface)然后 IP 发生变化,会发生什么情况?

visual-studio-code - "Run Without Debugging"确实在 VS Code 的断点处停止。错误还是设计?

regex - 无法使用正则表达式获取输出

linux - 为什么只有 debian 返回 127.0.0.1

c++ - 调试 C++ 程序时 GDB cv::Mat python 对象问题

c++ - gdb 使用 All-Stop 模式单步执行单个线程

Android:调试共享库

c++ - 在 gdb 调试器中识别符号的源文件名