gdb - gdb如何工作?

标签 gdb

我想知道gdb在内部如何工作。
例如我知道一个简短的想法,它利用ptrace()系统调用来监视跟踪的程序。
但是我想知道它是如何处理信号的,如何插入新代码的以及它所做的其他类似的事情。

最佳答案

请查看GDB Internals Manual,它涵盖了一些重要方面。该文档还有一个较旧的PDF version

从手册中:

This document documents the internals of the GNU debugger, gdb. It includes description of gdb's key algorithms and operations, as well as the mechanisms that adapt gdb to specific hosts and targets.

关于gdb - gdb如何工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3903565/

相关文章:

printing - 使用 GDB 和 Clang 漂亮地打印 STL

c++ - 在回溯中格式化 GDB 模板参数

linux - gdbserver 无法中断 "SOME"进程,gdbserver 调用的kill(pid,2) 没有向进程发送 SIGINT,发生了什么?

c++ - 在 C++ 代码 gdb 中回溯指针

c - 如何将 Android native 代码调试到内核中?

c++ - 了解一些 C++ 编码实践

linux - 如何调试基于 mozilla 的二进制应用程序?

gdb - 如何用nasm生成gdb符号文件?

可由文件控制的C调试器

ios - 无法在 gdb 或 lldb 中设置观察点