Skip to content
Snippets Groups Projects
Commit e9b34e09 authored by pompolic's avatar pompolic
Browse files

Fix spurious warning

Although the command runs, invoking "continue" without an inferior running
produces an error message with no other feedback
parent 423543df
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,11 @@ class HammerParseStep(gdb.Command): ...@@ -26,7 +26,11 @@ class HammerParseStep(gdb.Command):
# step_counter -= 1 # step_counter -= 1
# else: # else:
# retval = True # retval = True
gdb.execute("continue")
# only execute "continue" if inferior is present and running, to avoid a warning
# don't know if there's a more reliable way to tell this
if gdb.selected_inferior().pid > 0:
gdb.execute("continue")
HammerParseStep() HammerParseStep()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment