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

gdb: fix exceptions when a thread function/file cannot be decoded

parent f3566622
No related branches found
No related tags found
No related merge requests found
......@@ -164,12 +164,18 @@ class osv_info_threads(gdb.Command):
status = 'rdy '
if long(t['_waiting']['_M_base']['_M_i']):
status = 'wait'
function = '??'
if fr.function():
function = fr.function().name
fname = '??'
if sal.symtab:
fname = sal.symtab.filename
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,
function,
fname,
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