freebsd-skq/sys/ddb
jhb 03dc7bc4a4 Implement db_print_backtrace() if DDB is compiled into the kernel. This
MD function is just a wrapper around db_stack_trace_cmd() that prints out
a backtrace of curthread.  Currently, this function is only implemented
on i386 and alpha (and the alpha version isn't quite tested yet, will do
that in a bit).  Other changes:

- For i386, fix a bug in the raw frame address case.  The eip we extract
  from the passed in frame address does not match the frame we received.
  Thus, instead of printing a bogus frame with the wrong eip, go ahead
  and advance frame down to the same frame as the eip we are using.
- For alpha, attempt to add a way of doing a raw trace for alpha.  Instead
  of passing a frame address in 'addr', pass in a pointer to a structure
  containing PC and KSP and use those to start the backtrace.  The alpha
  db_print_backtrace() uses asm to read in the current PC and KSP values
  into such a request.

Tested on:	i386
Requested by:	many
2002-09-19 18:46:29 +00:00
..
db_access.c
db_access.h Remove __P. 2002-03-20 05:14:42 +00:00
db_break.c Remove __P. 2002-03-20 05:14:42 +00:00
db_break.h Remove __P. 2002-03-20 05:14:42 +00:00
db_command.c Fixed some style bugs in the removal of __P(()). Continuation lines 2002-03-23 11:53:03 +00:00
db_command.h Remove __P. 2002-03-20 05:14:42 +00:00
db_elf.c Garbage-collected __ELF__ ifdefs. 2002-09-15 22:28:39 +00:00
db_examine.c Don't assume that pointers are 4 bytes or sizeof(int) in size. This fixes 2002-06-25 15:59:24 +00:00
db_expr.c Don't assume that pointers are 4 bytes or sizeof(int) in size. This fixes 2002-06-25 15:59:24 +00:00
db_input.c Remove __P. 2002-03-20 05:14:42 +00:00
db_kld.c Reconnect db_elf.c to the build (now under "options DDB_NOKLDSYM"). It 2002-05-07 10:59:52 +00:00
db_lex.c Remove __P. 2002-03-20 05:14:42 +00:00
db_lex.h Remove __P. 2002-03-20 05:14:42 +00:00
db_output.c Remove __P. 2002-03-20 05:14:42 +00:00
db_output.h Remove __P. 2002-03-20 05:14:42 +00:00
db_print.c
db_ps.c Completely redo thread states. 2002-09-11 08:13:56 +00:00
db_run.c Split the declaration and the initialization of two variables. 2002-06-23 20:03:03 +00:00
db_sym.c Remove __P. 2002-03-20 05:14:42 +00:00
db_sym.h When talking about c_db_sym_t, mention that it is not just like db_sym_t: 2002-08-14 17:56:47 +00:00
db_sysctl.c Previous commit changing SYSCTL_HANDLER_ARGS violated KNF. 2000-07-04 11:25:35 +00:00
db_trap.c A set of changes to reduce the number of include files the kernel 2001-07-08 04:56:07 +00:00
db_variables.c Remove __P. 2002-03-20 05:14:42 +00:00
db_variables.h Remove __P. 2002-03-20 05:14:42 +00:00
db_watch.c Remove __P. 2002-03-20 05:14:42 +00:00
db_watch.h
db_write_cmd.c
ddb.h Implement db_print_backtrace() if DDB is compiled into the kernel. This 2002-09-19 18:46:29 +00:00