Mark Johnston e31a60b486 Don't return undefined symbols to a DDB symbol lookup.
Undefined symbols have a value of zero, so it makes no sense to return
such a symbol when performing a lookup by value. This occurs for example
when unwinding the stack after calling a NULL function pointer, and we
confusingly report the faulting 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
re-enter the debugger.

Reviewed by:	jhb
Sponsored by:	EMC / Isilon Storage Division
Differential Revision:	https://reviews.freebsd.org/D2858
2015-07-21 23:07:55 +00:00
..
2015-05-23 14:59:27 +00:00
2015-05-23 14:59:27 +00:00
2014-10-12 18:01:52 +00:00
2014-10-11 20:25:19 +00:00
2015-05-23 14:59:27 +00:00
2014-10-11 20:25:19 +00:00
2015-05-23 14:59:27 +00:00
2014-10-11 20:25:19 +00:00
2015-05-23 14:59:27 +00:00
2015-05-21 15:16:18 +00:00