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
F118970744: D2858.diff
Tue, Jun 3, 10:11 PM
Unknown Object (File)
Mon, Jun 2, 2:33 AM
Unknown Object (File)
Fri, May 16, 3:47 AM
Unknown Object (File)
Mar 4 2025, 8:40 PM
Unknown Object (File)
Feb 26 2025, 6:21 PM
Unknown Object (File)
Feb 23 2025, 3:47 PM
Unknown Object (File)
Feb 22 2025, 2:15 AM
Unknown Object (File)
Feb 21 2025, 9:14 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.