I would like to predefine some breakpoints in the gdb script and call some special commands on these breakpoints, and then automatically continue the program. So, ideally, I would like to have a gdb script as follows:
b someFunction ... if breakpoint from above reached do: print var1 call someOtherFunction continue done
Also, unfortunately, I cannot rely on the python interface to use breakpoints, since the version of gdb on the server I'm currently running on is too old!
scripting breakpoints gdb
Lord Bo Dec 18 '12 at 14:48 2012-12-18 14:48
source share