0

I need a c++ script to automate GDB debugging another c++ program. the c++ script has to be able to run gdb commands and get the results from it and use it inside the script to save variable values for later usage, my main questions are:

  1. is there a c++ library for using GDB programmatically (running gdb commands like

continue

step into

) and getting value variables

  1. if there is no library, how can I implement the c++ script myself?
  2. can I use a python script instead of a c++ script to debug the c++ program?
  3. if it is possible to use python, what libraries can I use for using GDB programmatically in python?
  4. giving an implementation example for scripts would be a good guideline and help

thanks

0 Answers0