gdb has some functionalities that I would like to use in a program. For example tracing a program's system calls and the "list" functionality that shows the source code of a program.
I know that gdb uses both ptrace and the BFD libraries to accomplish these 2 functionalities. However, instead of rewriting already existing code, I am interested in finding libraries and functions that I could use.
Does anyone know if there are gdb libraries that I could use? and if not, are there any other similar debuggers that I could use that might offer these functionalities?