Skip to content

Commit

Permalink
Further tweaks to gdb script API.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed Mar 29, 2024
1 parent 242265b commit 440a5f7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/rr-gdb-script-host.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class GdbScriptHost:

new_objfile_events: List[GdbNewObjfileEventCallback] = []

COMMAND_USER: int = 13

def __init__(self, *args, **kwargs):
self._filename = args[0]

Expand Down Expand Up @@ -159,6 +157,14 @@ def events(self) -> GdbApiEvents:
self._events = GdbApiEvents(self.gdb)
return self._events

@property
def COMMAND_USER(self) -> int:
return 13

@property
def Command(self) -> object:
return object()

if __name__ == '__main__':
with open(sys.argv[1], 'r') as user_script_file:
user_script = user_script_file.read()
Expand Down

0 comments on commit 440a5f7

Please sign in to comment.