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

gdb: show thread status in 'osv info threads'

parent 6df148aa
No related branches found
No related tags found
No related merge requests found
......@@ -161,9 +161,13 @@ class osv_info_threads(gdb.Command):
cpu = t['_cpu']
fr = gdb.selected_frame()
sal = fr.find_sal()
gdb.write('%s cpu%s %s at %s:%s\n' %
status = 'rdy '
if long(t['_waiting']['_M_base']['_M_i']):
status = 'wait'
gdb.write('%s cpu%s %s %s at %s:%s\n' %
(ulong(t.address),
cpu['arch']['acpi_id'],
status,
fr.function().name,
sal.symtab.filename,
sal.line
......
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