Page MenuHomeFreeBSD

ddb: don't return undefined symbols to a lookup
ClosedPublic

Authored by markj on Jun 18 2015, 5:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jun 5, 6:59 PM
Unknown Object (File)
Thu, Jun 4, 7:57 AM
Unknown Object (File)
Wed, Jun 3, 10:16 PM
Unknown Object (File)
Sat, May 23, 12:41 AM
Unknown Object (File)
Apr 28 2026, 5:10 PM
Unknown Object (File)
Apr 28 2026, 5:05 PM
Unknown Object (File)
Apr 27 2026, 5:45 AM
Unknown Object (File)
Apr 24 2026, 10:26 AM
Subscribers
None

Details

Summary

Undefined symbols have a value of 0, so it makes no sense to return such
a symbol when performing a lookup by value. This occurs when unwinding
the stack after calling a NULL function pointer, and we confusingly
report the current function as uart_sab82532_class() on amd64.

Convert db_print_loc_and_inst() to only attempt disassembly if we
managed to find a symbol corresponding to the IP. Otherwise we may fault
and reenter the debugger.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

markj retitled this revision from to ddb: don't return undefined symbols to a lookup.
markj edited the test plan for this revision. (Show Details)
markj updated this object.
jhb edited edge metadata.
This revision is now accepted and ready to land.Jun 20 2015, 2:22 PM
This revision was automatically updated to reflect the committed changes.