Skip to content

Commit

Permalink
helpers: don't fail on breakpoint-modified
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Preisinger <alexander.preisinger@gmail.com>
  • Loading branch information
giselher committed Mar 12, 2012
1 parent a09cf14 commit 6c56c11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/helpers/gdboutput.py
Expand Up @@ -43,10 +43,11 @@ class GdbOutput:
THREAD_SELECTED, \
LIBRARY_LOADED, \
LIBRARY_UNLOADED, \
BREAKPOINT_MODIFIED, \
EXIT, \
CONNECTED, \
ERROR \
= range(22)
= range(23)

def __init__(self):
self.class_ = None # done, running,...
Expand Down
8 changes: 6 additions & 2 deletions src/helpers/gdbresultparser.py
Expand Up @@ -46,7 +46,8 @@
"thread-group-exited": "THREAD_GROUP_EXITED",
"thread-selected": "THREAD_SELECTED",
"library-loaded": "LIBRARY_LOADED",
"library-unloaded": "LIBRARY_UNLOADED"
"library-unloaded": "LIBRARY_UNLOADED",
"breakpoint-modified": "BREAKPOINT_MODIFIED"
}

tokens = [
Expand Down Expand Up @@ -168,7 +169,8 @@ def p_async_class(p):
| THREAD_GROUP_EXITED
| THREAD_SELECTED
| LIBRARY_LOADED
| LIBRARY_UNLOADED'''
| LIBRARY_UNLOADED
| BREAKPOINT_MODIFIED'''
if p[1] == "stopped":
p[0] = GdbOutput.STOPPED
elif p[1] == "running":
Expand All @@ -191,6 +193,8 @@ def p_async_class(p):
p[0] = GdbOutput.LIBRARY_LOADED
elif p[1] == "library-unloaded":
p[0] = GdbOutput.LIBRARY_UNLOADED
elif p[1] == "breakpoint-modified":
p[0] = GdbOutput.BREAKPOINT_MODIFIED
else:
raise exc.GdbError("Got " + p[1] + " which cannot occur here!")

Expand Down

0 comments on commit 6c56c11

Please sign in to comment.