GDB command to know whether the program is running or stopped -
i trying automate gdb debugging session, want know whether there command or other way in gdb me know whether program running or stopped ?
use gdb.selected_inferior().threads()[0].is_running()
gdb python api:
$ gdb -q /bin/true (gdb) python __future__ import print_function (gdb) python print([ t.is_running() t in gdb.selected_inferior().threads() ]) [true]
Comments
Post a Comment