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

gdb: print state of running threads correctly

parent 0d40ed84
No related branches found
No related tags found
No related merge requests found
......@@ -222,6 +222,8 @@ class osv_info_threads(gdb.Command):
status = 'rdy '
if long(t['_waiting']['_M_base']['_M_i']):
status = 'wait'
if state.cpu_from_thread(t):
status = 'run '
function = '??'
if fr.function():
function = fr.function().name
......
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