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] 

references


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -