Home | History | Annotate | Download | only in ddb
History log of /src/sys/ddb/db_panic.c
RevisionDateAuthorComments
 1.12  21-Nov-2023  riastradh ddb: New db_stack_trace_print_ra.

Takes an optional extra argument for the return address so that the
stack parser has a chance to use instruction-dependent interpretation
of the frame to find parent frames.

Implemented only on Alpha for now, which needs it. Other
architectures just ignore the extra argument.

PR port-alpha/57716

XXX pullup-10
XXX pullup-9
XXX pullup-8
 1.11  06-Oct-2021  uwe KNF: The function type must be declared on a line by itself.
 1.10  20-Jul-2021  christos need <sys/param.h> for COHERENCY_UNIT
 1.9  27-Jan-2019  pgoyette branches: 1.9.16;
Merge the [pgoyette-compat] branch
 1.8  27-May-2018  uwe branches: 1.8.2;
Add missing $NetBSD$ comment at the beginning.
 1.7  17-Feb-2018  sevan branches: 1.7.2;
Opt to print a backtrace on panic by default with the intention of improving bug reports.
Instead of relying on ddb.onpanic=2, introduce a new sysctl called dumpstack to handle this.
via <jmcneill> channeled through <mrg> on tech-kern[1]

[1] https://mail-index.netbsd.org/tech-kern/2018/02/15/msg023103.html
 1.6  28-Dec-2017  christos - add ddb.panicstackframes to avoid scrolling the interesting parts of panic
stacktraces off.
- change valuep to void * to avoid casts
- sort and use c99 initializers in variables array
 1.5  27-Oct-2017  joerg Revert printf return value change.
 1.4  27-Oct-2017  utkarsh009 [syzkaller] Cast all the printf's to (void *)
> as a result of new printf(9) declaration.
 1.3  22-Jan-2014  christos branches: 1.3.4;
add a return in the panic message
 1.2  10-Feb-2013  christos branches: 1.2.2; 1.2.4;
need <sys/types.h> for various crap that other headers use (pid_t etc).
 1.1  10-Feb-2013  apb Move the DDB-specific part of vpanic() to a new db_panic() function,
defined in ddb/db_panic.c and declared in ddb/ddbvar.h. No functional
change.

The copyright years in db_panic.c are the years in which changes were
made to the code that has now been moved to db_panic.c. No pre-NetBSD
copyright notice is needed because revision 1.12 of subr_prf.c had only
the trivial "#ifdef DDB \\ Debugger(); \\ #endif"
 1.2.4.3  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.2.4.2  25-Feb-2013  tls resync with head
 1.2.4.1  10-Feb-2013  tls file db_panic.c was added on branch tls-maxphys on 2013-02-25 00:29:10 +0000
 1.2.2.1  18-May-2014  rmind sync with head
 1.3.4.2  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.3.4.1  22-Jan-2014  yamt file db_panic.c was added on branch yamt-pagecache on 2014-05-22 11:40:19 +0000
 1.7.2.1  25-Jun-2018  pgoyette Sync with HEAD
 1.8.2.1  10-Jun-2019  christos Sync with HEAD
 1.9.16.1  01-Aug-2021  thorpej Sync with HEAD.

RSS XML Feed