freebsd-dev/sys/mips
John Baldwin 58ffa42f64 Use db_printsym() to display function names in stack traces.
Previously, the stack unwinder tried to locate the start of the function
in each frame by walking backwards until it found an instruction that
modified the stack pointer and then assumed that was the first instruction
in a function.  The unwinder would only print a function name if the
starting instruction's address was an exact match for a symbol name.
However, not all functions generated by modern compilers start off functions
with that instruction.  For those functions, the unwinder would fail to
find a matching function name.  As a result, most frames in a stack
trace would be printed as raw hex PC's instead of a function name.

Stop depending on this incorrect assumption and just use db_printsym()
like other platforms to display the function name and offset for each
frame.  This generates a far more useful stack trace.

While here, don't print out curproc's pid at the end of the trace.  The
pid was always from curproc even if tracing some other process.

In addition, remove some rotted comments about hardcoded constants that
are no longer hardcoded.

Sponsored by:	DARPA / AFRL
2017-01-05 00:59:53 +00:00
..
adm5120 Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
alchemy Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
atheros [ar71xx] add EARLY_PRINTF support for the AR933x (Hornet) UART. 2016-12-29 17:31:38 +00:00
beri Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
broadcom bhnd(4): minor style(9) fixes 2016-12-19 20:07:58 +00:00
cavium Fix device delete child function. 2016-10-17 10:20:38 +00:00
conf Remove duplicate iic and iicbus devices from JZ4780 kernel 2017-01-04 18:36:30 +00:00
gxemul Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00
idt Remove NULL checks after M_WAITOK allocations from sys/mips/. 2016-05-11 09:42:24 +00:00
include Only call stacktrace_subr() from DDB. 2017-01-05 00:08:04 +00:00
ingenic The JZ4780 I2S can feed either the internal audio codec or the HDMI 2016-12-29 14:00:10 +00:00
malta Fix dump_avail[] for MALTA platforms to include the kernel. 2016-12-22 20:28:06 +00:00
mediatek ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
mips Use db_printsym() to display function names in stack traces. 2017-01-05 00:59:53 +00:00
nlm Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00
rmi Fix device delete child function. 2016-10-17 10:20:38 +00:00
rt305x ofw_spi: Parse property for the SPI mode and CS polarity. 2016-12-18 14:54:20 +00:00
sibyte Allow the use of soft-interrupts for sending IPIs. 2016-09-08 17:37:13 +00:00