Skip to content
Snippets Groups Projects
Commit bfae6c2c authored by Per's avatar Per
Browse files

polishing

parent ef435231
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ def gdb_set_pc(task): ...@@ -47,7 +47,7 @@ def gdb_set_pc(task):
def gdb_call(task): def gdb_call(task):
# call task # call task
print("#### call task %s" % task) print("#### call task %s" % task)
gdb.execute('call %s' % "stub_" + task + "()"a') gdb.execute('call %s' % "stub_" + task + "()")
def gdb_bkpt_read(): def gdb_bkpt_read():
...@@ -90,7 +90,7 @@ class Executor: ...@@ -90,7 +90,7 @@ class Executor:
def stop_event(evt): def stop_event(evt):
global task_nr global task_nr
print("#### stop event %r" % evt) # print("#### stop event %r" % evt)
imm = gdb_bkpt_read() imm = gdb_bkpt_read()
print(" imm = {}".format(imm)) print(" imm = {}".format(imm))
...@@ -126,7 +126,9 @@ def posted_event_init(): ...@@ -126,7 +126,9 @@ def posted_event_init():
if task_nr >= len(tasks): if task_nr >= len(tasks):
print("------------- tasks done") print("------------- tasks done")
gdb.execute("quit") gdb.events.stop.disconnect(stop_event)
return
# gdb.execute("quit")
else: else:
try: try:
gdb_call(tasks[task_nr]) gdb_call(tasks[task_nr])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment