是否可以使用 gdb 库?
Are gdb libraries available for use?
gdb 有一些我想在程序中使用的功能。例如跟踪程序的系统调用和显示程序源代码的 "list" 功能。
我知道 gdb 使用 ptrace 和 BFD 库来完成这两个功能。但是,我没有重写现有代码,而是有兴趣找到我可以使用的库和函数。
有谁知道是否有我可以使用的 gdb 库?如果没有,我可以使用任何其他类似的调试器来提供这些功能吗?
您可能想探索 libdgb。虽然我不知道这是否正在积极追求。
Does anyone know if there are gdb libraries that I could use?
没有。 7 年前有人提议将 GDB 打包为可重复使用的 libgdb, but the effort never received much support and has been completely abandoned。
are there any other similar debuggers that I could use that might offer these functionalities?
lldb 遵循将所有内容打包为库的一般 LLVM 方向:
The LLDB debugger APIs are exposed as a C++ object oriented interface
in a shared library.
我个人没有这方面的经验。
gdb 有一些我想在程序中使用的功能。例如跟踪程序的系统调用和显示程序源代码的 "list" 功能。
我知道 gdb 使用 ptrace 和 BFD 库来完成这两个功能。但是,我没有重写现有代码,而是有兴趣找到我可以使用的库和函数。
有谁知道是否有我可以使用的 gdb 库?如果没有,我可以使用任何其他类似的调试器来提供这些功能吗?
您可能想探索 libdgb。虽然我不知道这是否正在积极追求。
Does anyone know if there are gdb libraries that I could use?
没有。 7 年前有人提议将 GDB 打包为可重复使用的 libgdb, but the effort never received much support and has been completely abandoned。
are there any other similar debuggers that I could use that might offer these functionalities?
lldb 遵循将所有内容打包为库的一般 LLVM 方向:
The LLDB debugger APIs are exposed as a C++ object oriented interface
in a shared library.
我个人没有这方面的经验。