Skip to content
Snippets Groups Projects
Commit 803b52dc authored by Gleb Natapov's avatar Gleb Natapov Committed by Avi Kivity
Browse files

fix "osv info threads" gdb command


If thread is not started its cpu pointer will be NULL. Handle this
case properly.

Signed-off-by: default avatarGleb Natapov <gleb@cloudius-systems.com>
Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
parent fadc5fdc
No related branches found
No related tags found
No related merge requests found
......@@ -748,7 +748,7 @@ class osv_info_threads(gdb.Command):
gdb.write('%4d (0x%x) %-15s cpu%s %-10s %s vruntime %12g\n' %
(tid, ulong(t), name,
cpu['arch']['acpi_id'],
cpu['arch']['acpi_id'] if cpu != 0 else "?",
thread_status(t),
location,
t['_runtime']['_Rtt'],
......
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