Skip to content
Snippets Groups Projects
Commit 096694be authored by Avi Kivity's avatar Avi Kivity
Browse files

gdb: teach 'osv trace' about user defined tracepoints

parent 0ec8977e
No related branches found
No related tags found
No related merge requests found
...@@ -375,7 +375,13 @@ def dump_trace(): ...@@ -375,7 +375,13 @@ def dump_trace():
indent = ' ' * indents[thread] indent = ' ' * indents[thread]
trace_function(indent, '<-', data) trace_function(indent, '<-', data)
else: else:
pass # FIXME: standard tracepoint format = tp['format'].string()
name = tp['name'].string()
gdb.write('0x%016x %-20s %s\n' % (thread,
name,
format % data,
)
)
class osv_trace(gdb.Command): class osv_trace(gdb.Command):
def __init__(self): def __init__(self):
......
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