History log of /src/share/man/man4/ddb.4
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.204 29-Jun-2024 rin

ddb(4): vax: Clarify how to enter into DDB from console

See gencnrint() and kdbrint().

// At last, I can activate DDB on SIMH ;)


# 1.203 09-Jul-2023 riastradh

ddb: New `show all tstiles' command.

Shows who's waiting for which locks and what the owner is up to.

XXX pullup-10


Revision tags: netbsd-10-base
# 1.202 28-Apr-2022 msaitoh

branches: 1.202.2;
Add missing "show vmem[s]".


# 1.201 29-Jun-2021 wiz

Fix date.


# 1.200 21-Jun-2021 thorpej

x/I no longer has special meaning on alpha, and behaves just like x/i.


Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.199 11-Mar-2021 ryo

Numeric modifiers conflict with the syntax interpretation of ddb, so use 'b', 'w', 'l', 'q' instead.
Also, change load/store('l','s') to 'r','w' like the other arch.

>db{0}> machine watch/1 hostname
>Bad modifier

>db{0}> machine watch/s1 hostname
>add watchpoint 0 as ffffc00001087848


# 1.198 19-Feb-2021 msaitoh

Add missing 'q' modifier for the write command.


# 1.197 19-Dec-2020 mrg

ddb: add two new modifiers to "show pool" and "show all pools"

- /s shows a short single-line per pool list (the normal output
is about 10 lines per.)
- /S skips pools with zero allocations.


# 1.196 31-Oct-2020 uwe

Install ddb(9). Xref it from ddb(4).


# 1.195 23-Aug-2020 wiz

Fix editor mistake in previous.


# 1.194 23-Aug-2020 simonb

Document the MIPs "mips machine {cpu,nmi,watch,unwatch}" commands.
Add commented out stubs for the mfcr and mtcr commands.


# 1.193 23-Aug-2020 simonb

Use upper-case "CPU" consistently in all text except DDB command names.


# 1.192 13-Jul-2020 wiz

New sentence, new line.


# 1.191 13-Jul-2020 simonb

Copy "mach reset" logic from arm32 recently added by jmcneill@. The
previous MIPS "mach reset" DDB command was hard-coded for Octeon Cavium
CPUs only.


# 1.190 02-Jul-2020 jmcneill

Add ddb "mach reset" command for Arm ports.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.189 30-Mar-2020 maya

Don't mention a.out support, which does not exist in ddb any more.


Revision tags: is-mlppp-base
# 1.188 15-Dec-2019 joerg

Teach ddb(4) about printing the full mount list.


Revision tags: phil-wifi-20191119
# 1.187 10-Sep-2019 ryo

- examin/m displays with splitting by spaces as specified size
- add support 'q' modifier on all arch
- consider endianness


# 1.186 10-Sep-2019 ryo

Add support for 'p' qualifier for pointer values on examine.
this shows as a pointer with symbol if possible. (e.g. "x/p $sp,10")


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base
# 1.185 21-Jul-2019 rin

Describe how to enter ddb for evbarm.
Bump date.


Revision tags: phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020
# 1.184 12-Oct-2018 msaitoh

The 'c' modifier of mbuf command is to NOT follow the mbuf chain.
Usually, users want to floow the mbuf chain. This modifier is used when a
user don't want to follow a mbuf chain.


Revision tags: pgoyette-compat-0930 pgoyette-compat-0906
# 1.183 13-Aug-2018 mrg

extend the ddb "show kernhist" command. the synopsis is now:

show kernhist[/i] [addr[,count]]

the i modifier means display info instead of entries, and the count
restricts to the last count entries.

the count option is only supported for specified histories. it
could be extended but requires more logic than the single history,
as multiple histories are merged during display.


# 1.182 30-Jul-2018 ryo

Add machine commands for aarch64.


Revision tags: pgoyette-compat-0728
# 1.181 20-Jul-2018 wiz

Improve wording.


# 1.180 20-Jul-2018 msaitoh

Add "show socket" command written by Hiroki SUENAGA. It prints usage of
system's socket buffers.


# 1.179 17-Jul-2018 msaitoh

Add /d(dump) and /v(verbose) modifiers to DDB's "show mbuf" command. Mainly
written by Hiroki SUENAGA. Currently, /v supports Ethernet, PPP, PPPoE, ARP,
IPv4, ICMP, IPv6, ICMPv6, TCP and UDP.


Revision tags: phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322
# 1.178 19-Mar-2018 ozaki-r

branches: 1.178.2;
ddb: rename "show lockstat" to "show lockstats" to avoid conflicting with lockstat(8)

Requested by mrg@


# 1.177 16-Mar-2018 wiz

Improve wording. Fix a Cm argument.


# 1.176 16-Mar-2018 ozaki-r

Add a new command, show all locks, which shows information of active locks

The command shows information of all active (i.e., being held) locks that are
tracked through either of LWPs or CPUs by the LOCKDEBUG facility. The /t
modifier additionally shows a backtrace for each LWP additionally. This
feature is useful for debugging especially to analyze deadlocks.

The command is useful only if LOCKDEBUG is enabled.


# 1.175 16-Mar-2018 ozaki-r

Add a new command, show lockstat, which shows statistics of locks

Currently the command shows the number of allocated locks.

The command is useful only if LOCKDEBUG is enabled.


Revision tags: pgoyette-compat-0315 pgoyette-compat-base
# 1.174 19-Feb-2018 wiz

branches: 1.174.2;
Quote minus.


# 1.173 17-Feb-2018 sevan

document dumpstack variable.
Sort built-in variables alphabetically.


# 1.172 24-Jan-2018 wiz

Remove macros without effect.


# 1.171 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.170 28-Dec-2017 wiz

Fix word.


# 1.169 28-Dec-2017 wiz

Remove Tn.


# 1.168 28-Dec-2017 christos

document ddb.panicstackframes


Revision tags: perseant-stdc-iso10646-base
# 1.167 03-Jul-2017 wiz

Remove workaround for ancient HTML generation code.


Revision tags: matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base
# 1.166 12-Jan-2017 wiz

branches: 1.166.6;
Fix typo.


# 1.165 12-Jan-2017 martin

Try to document the new "show vnode_lock" command.


Revision tags: pgoyette-localcount-20170107
# 1.164 27-Dec-2016 pgoyette

Bump date for previous.


# 1.163 27-Dec-2016 pgoyette

Update the list of options that enable the "show kernhist" command, and
restructure a bit.


# 1.162 26-Dec-2016 pgoyette

Add a BIOHIST option. As mentioned on tech-kern.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.161 13-Apr-2016 ozaki-r

branches: 1.161.2;
ddb: rename show arptab to show routes

show arptab command of ddb is now inappropriate because it actually dumps
routes but arp entries aren't routes anymore. So rename it to show routes
and move the code from if_arp.c to route.c.

ok christos@


# 1.160 12-Apr-2016 wiz

Slight markup fix.


# 1.159 12-Apr-2016 skrll

Update for 'show kernhist' change. (go wiz!)


# 1.158 13-Nov-2015 wiz

Bump date for previous, remove empty line.


# 1.157 12-Nov-2015 phx

Add sandpoint ddb-entry method.


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base tls-earlyentropy-base tls-maxphys-base
# 1.156 12-Jun-2014 christos

PR/8899: Alexander Nasonov: ddb command 'show malloc' is no longer available


Revision tags: yamt-pagecache-base9 riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3
# 1.155 24-Feb-2014 skrll

branches: 1.155.2;
Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base
# 1.154 15-May-2013 msaitoh

Change from deleted "show uvmhist" to "show kernhist".

XXX pullup-6


Revision tags: agc-symver-base yamt-pagecache-base8
# 1.153 06-Jan-2013 christos

remove show dmesg


# 1.152 06-Jan-2013 christos

add show dmesg


# 1.151 05-Jan-2013 christos

document show panic


Revision tags: yamt-pagecache-base7
# 1.150 12-Dec-2012 christos

mention what sync does.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base
# 1.149 12-Feb-2012 sborrill

branches: 1.149.6;
Address kern/36526. Note, contrary to the PR, ; command separator works as
documented in ddb(4)
Document ddb.commandonenter sysctl. Note, commandonenter is not available
as a variable:
db{0}> print $onpanic
1
db{0}> print $commandonenter
Unknown variable
So document the sysctl elsewhere, not in the variables section.


# 1.148 12-Jan-2012 skrll

Update hp700 key sequences section.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.147 23-Oct-2011 jym

branches: 1.147.2;
ps/l shows LWP name, not command name.


# 1.146 23-Oct-2011 jym

Document "show proc". Be more verbose about commands that print
information about processes especially the '>' sign (e.g. LWP is
currently running).

Bump date. Straight from Hackathon@ESPCI.


# 1.145 29-Aug-2011 jym

Be more precise for Xen dom0: either Ctrl + Alt + Esc, or +++++ when on
serial console.

Thanks to Christoph and Manuel for pointing that out.


# 1.144 28-Aug-2011 jym

Be more precise for Xen: +++++ is only valid for Xen domUs. dom0 uses
the same key sequences as i386/amd64.


# 1.143 23-Jun-2011 wiz

Quote minus so it does not become a dash.


# 1.142 23-Jun-2011 riz

Document additional settings for onpanic, from options(4).


Revision tags: cherry-xenmp-base uebayasi-xip-base7 bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 uebayasi-xip-base6 uebayasi-xip-base5 uebayasi-xip-base4 uebayasi-xip-base3 uebayasi-xip-base2
# 1.141 10-Jun-2010 wiz

Fix a typo. Bump date for previous.


# 1.140 09-Jun-2010 mrg

document the acorn26, i386, ia64 and vax ddb commands in both the builtin
help and in ddb.4. fixes PR#38304, PR#38305, PR#38309 and PR#38313.


# 1.139 08-Jun-2010 mrg

properly document alpha ddb "mach" commands. PR#38303.


# 1.138 06-Jun-2010 mrg

note that sun2 has the same ddb mach commands as sun3/sun3x. part of PR#38310


Revision tags: uebayasi-xip-base1
# 1.137 02-Mar-2010 skrll

branches: 1.137.2;
Document new hp700 'frame' command.


# 1.136 25-Feb-2010 wiz

Uncomment crash(8) reference.


# 1.135 22-Feb-2010 wiz

Comment out crash(8) reference, per PR 10708, until a MI one exists.


# 1.134 31-Jan-2010 phx

New modifiers for the "write" command: /BHL. They act like /bhl but do not
read the old value from memory before writing.


# 1.133 29-Jan-2010 wiz

Bump date for more powerpc commands.


# 1.132 28-Jan-2010 phx

New machine commands for PPC OEA.
bat: prints the BAT registers and translations
mmu: prints MMU registers (sdr1, sr0..15)
Previous PPC commands were for IBM4xx only, so make two sections now:
POWERPC 4xx and POWERPC OEA.


# 1.131 23-Jan-2010 wiz

Bump date for PowerPC descriptions. Make HTML-ready.


# 1.130 23-Jan-2010 mrg

document powerpc ddb commands. PR#38307.


# 1.129 10-Jan-2010 wiz

Bump date for sparc ddb command descriptions.


# 1.128 10-Jan-2010 mrg

document sparc ddb commands. PR#38312.


Revision tags: matt-premerge-20091211
# 1.127 05-Jun-2009 wiz

Match wording in list to other entries.


# 1.126 05-Jun-2009 mrg

extend 'show event' to take /i /t and /m modifiers, to select interrupt,
trap or misc event types. you can mix them with /f as well, to show all
including zero events for traps and misc, "show event/ftm"


Revision tags: jym-xensuspend-nbase jym-xensuspend-base
# 1.125 10-Apr-2009 joerg

Use .It "" instead of .br, they are different logical lines.
Don't use .Xo/.Xc to work around ancient macro argument limit.


# 1.124 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.123 04-Feb-2009 wiz

branches: 1.123.2;
Fix typo in .Dd argument. New sentence, new line.


# 1.122 04-Feb-2009 ad

Default 'show all procs' to /l. People tend to type 'ps' without modifiers
when providing information about deadlocks. Without the thread info it's
not very useful.


# 1.121 11-Jan-2009 skrll

It's "show uvmhist" not "uvmhist".


# 1.120 05-Dec-2008 wiz

Bump date for zaurus key combination.


# 1.119 05-Dec-2008 ober

Update ddb.4 to include Zaurus key combinations.


Revision tags: netbsd-5-0-RC2 netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 mjf-devfs2-base
# 1.118 23-Aug-2008 tnn

branches: 1.118.2;
fix formatting error


# 1.117 08-Aug-2008 skrll

typo


# 1.116 08-Aug-2008 skrll

Note show uvmhist.

Bump date.


# 1.115 10-Jul-2008 blymn

Add documentation for show files command


Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
# 1.114 23-May-2008 tsutsui

Add simple help messages for MD machine commands on ddb(4).
PR port-mips/38306


Revision tags: hpcarm-cleanup-nbase yamt-pf42-base2
# 1.113 02-May-2008 martin

branches: 1.113.2;
Move TNF licenses to 2 clause form


Revision tags: yamt-pf42-baseX yamt-pf42-base
# 1.112 26-Mar-2008 chris

branches: 1.112.2; 1.112.4;
Remove arm32 ddb machine commands that no longer exist.

Also change widest string to traptrace as intrchain no longer exists.

Fixes port-arm/38311


Revision tags: keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase hpcarm-cleanup-base
# 1.111 18-Feb-2008 tron

Bump the date.


# 1.110 18-Feb-2008 tron

Add magic keyboard sequence for NetBSD-amd64.


# 1.109 09-Jan-2008 simonb

Remove support for NetBSD/pc532.


Revision tags: pc532-eol-2008 matt-armv6-base
# 1.108 13-Dec-2007 yamt

document whatis.


Revision tags: cube-autoconf-base
# 1.107 01-Dec-2007 wiz

Fix typos.


# 1.106 23-Sep-2007 martin

Improve sparc64 "mach" descriptions.


# 1.105 23-Sep-2007 martin

Add a few missing "mach" commands for sparc64.


# 1.104 22-Sep-2007 martin

Document options DDB_VERBOSE_HELP.


Revision tags: matt-mips64-base
# 1.103 28-Mar-2007 uwe

branches: 1.103.4;
Document lines=0 and maxwidth=0


# 1.102 02-Mar-2007 pooka

describe: show all callout, show arptab, show lock, show malloc


# 1.101 20-Feb-2007 wiz

Fix typo in Dd.


# 1.100 20-Feb-2007 skrll

s/pid/lwpaddr/ in the bt/a case.


# 1.99 20-Feb-2007 ad

Document trace/a.


# 1.98 31-Jan-2007 mrg

update the "bt" description to include "/l" modifier


Revision tags: wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 netbsd-4-base
# 1.97 18-Nov-2006 jld

branches: 1.97.2; 1.97.4; 1.97.6;
Add /l to description of "ps" abbreviation for "show all procs".


# 1.96 18-Nov-2006 oster

Document 'show all procs /l'. (i.e. catch up with reality)


Revision tags: abandoned-netbsd-4-base chap-midi-nbase chap-midi-base
# 1.95 28-Apr-2006 wiz

Bump date for previous.


# 1.94 27-Apr-2006 hubertf

How to enter ddb on a xen comU: +++++
By Jeff Ito (ijk at speakeasy dot net) on port-xen@


# 1.93 25-Feb-2006 wiz

Fix some typos.


# 1.92 24-Feb-2006 wiz

Bump date for previous.


# 1.91 19-Feb-2006 bjh21

Document "show all pages". Reminded by wiz.


# 1.90 24-Jan-2006 yamt

add "show mbuf" command.


# 1.89 21-Jan-2006 wiz

Drop trailing whitespace.


# 1.88 19-Jan-2006 uwe

Bump date to welcome back # operator.


# 1.87 19-Jan-2006 uwe

Widen "Value" column in the reboot desccription to accomodate RB_POWERDOWN.
Make the table aligned properly in PostScript output.


# 1.86 19-Jan-2006 uwe

Reinstate description of # operator lost in an editing accident.
While here, fix spacing in the description of possible identifier syntax.


# 1.85 01-Dec-2005 wiz

Remove superfluous quoting. Use Aq macro instead of \*[Lt]\*[Gt].


# 1.84 01-Dec-2005 yamt

document "show all pools".


# 1.83 28-Nov-2005 wiz

Sort SEE ALSO. Fix typo.


# 1.82 26-Nov-2005 yamt

document DDB_COMMANDONENTER.


Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
# 1.81 14-Feb-2005 fredb

Expand the description of "reboot" slightly: add cross-references to
reboot(2) and reboot(8), and especially document RB_DUMP -- which is,
in fact, documented in reboot(2), if you'd only known to look there.


# 1.80 30-Sep-2004 wiz

Bump date for tee_msgbuf; new sentence, new line.


# 1.79 29-Sep-2004 reinoud

Implement ddb setting that allows all ddb output to be teed into the
kernel message buffer/log. Its off by default and can be switched on in the
kernel configuration on build time, be set as a variable in ddb and be set
using sysctl.

This adds the sysctl value
ddb.tee_msgbuf = 0
by default.

The functionality is especially added and aimed for developers who are not
blessed with a serial console and wish to keep all their ddb output in the
log. Specifying /l as a modifier to some selected commands will also put
the output in the log but not all commands provide one nor has the same
meaning for all commands.

This feature could in the future also be implemented as an ddb command but
that could lead to more bloat allthough maybe easier for non developpers to
use when mailing their backtraces from kernel crashes.


Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
# 1.78 02-Mar-2004 jdc

Add hpcarm and sparc64 key sequences.
Remove sun3x key sequence (no longer a separate port).


# 1.77 13-Feb-2004 wiz

Mention hw.cnmagic. From Christian Biere in PR 24405.
Also, Xr cnmagic(9) and bump date.


# 1.76 14-Dec-2003 wiz

Mention how to enter DDB on vax. From Brian Chase in PR 23740.


# 1.75 18-Nov-2003 wiz

NetBSD -> .Nx; use Dv for an option name; bump date for previous.


# 1.74 18-Nov-2003 dbj

add "show mount" ddb command


# 1.73 26-Oct-2003 lukem

document the (more useful) flags for `reboot'


# 1.72 21-Sep-2003 wiz

Bump date for previous, and escape an exclamation mark so it
gets marked up.


# 1.71 20-Sep-2003 thorpej

Document "show sched_qs".


# 1.70 04-Jul-2003 wiz

Bump date for last.


# 1.69 02-Jul-2003 simonb

Document the new "count" argument to the dmesg command.


# 1.68 27-Jun-2003 wiz

Fix Ns usage; quote exclamation mark.


# 1.67 26-Jun-2003 wiz

Remove some superfluous macro calls.


# 1.66 18-May-2003 wiz

New sentence, new line. Bump date for last. Add missing "the".


# 1.65 15-May-2003 atatat

(1) Don't print the message buffer (via ddb's dmesg command) if the
message buffer has not yet been set up, mimicking code from the top of
the sysctl routine for retrieving the message buffer.

(2) Add a /l modifier to the trace command. This makes it print the
backtrace using printf() instead of db_printf(), which has the nice
side-effect of also putting it into the message buffer. A kernel with
ddb in it but disabled (ie, ddb.onpanic set to zero) will print a
backtrace (which ends up in the message buffer) before dumping (or
not, depending on the value of kern.dump_on_panic) and rebooting, but
if ddb is not disabled, the backtrace is not printed, and there's no
way to get it to display a backtrace such that you can retrieve it
after the dump. The backtrace printed by gdb is sometimes a little
different.

(3) Documentation for the above.


# 1.64 08-May-2003 wiz

Hack around ".Nm" introducing newlines in the SYNOPSIS section.
Reported by Kouichiro Hiratsuka via uebayasi.


# 1.63 30-Mar-2003 wiz

Uppercase prom and eeprom.


# 1.62 04-Mar-2003 wiz

Mention how to enter ddb on macppc. Bump date and copyright.


# 1.61 03-Mar-2003 wiz

Drop trailing space.


# 1.60 25-Feb-2003 wiz

.Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.


# 1.59 13-Feb-2003 jmc

Add a synonym for trace - 'bt' and document it


Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 fvdl_fs64_base netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
# 1.58 09-May-2002 uch

document sh3 and hpcsh usage.


# 1.57 15-Feb-2002 simonb

Document "show event".


# 1.56 13-Feb-2002 ross

Generate <>& symbolically. I'm avoiding .../dist/... directories for now.


# 1.55 01-Jan-2002 mrg

fix typo: u-are -> u-area


# 1.54 31-Dec-2001 jhawk

Convenience variables (workXX) don't work, so don't document them.


# 1.53 12-Sep-2001 wiz

Sort sections, sort SEE ALSO, and some formatting improvements.


# 1.52 06-May-2001 wiz

Change xref for vmstat(8) to vmstat(1).
Whitespace, punctuation and spelling fixes while I'm here.


# 1.51 11-Apr-2001 msaitoh

describe about $fromconsole


# 1.50 12-Feb-2001 jhawk

Copyright 1997-2001 (range).
Document some stuff:
show breaks
show buf
show ncache
show page
show pool
show uvmexp
show vnode
Sprinkle some commas.


# 1.49 26-Nov-2000 mrg

document sparc64 usage.


Revision tags: netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base
# 1.48 07-Jun-2000 jhawk

branches: 1.48.2;
Fix long-standing inconsistency between manapage and code.
The "ditto" character is " (double-quote); not , (comma) as
indicated in the manpage; and not ' (single-quote) as indicated
in the man.old -style manpage from which the mdoc manpage was derived.

Some other versions of ddb use single-quote for this feature, and this
part of the code may change again in the near future, but the documentation
now affects reality now.
they


Revision tags: minoura-xpg4dl-base
# 1.47 23-May-2000 jhawk

branches: 1.47.2;
Note "sifting" requires backslash escapes for leading digits.


# 1.46 22-May-2000 jhawk

Add a "sifting" command to ddb (named from the Sun OpenPROM command of
the same name); it searches the symbol table(s) for all symbols matching
a given substring, and prints.

Extremely useful for when you forget that critical symbol name.

Also, with /F support (cf. "ls -F") to print a char indicating the
symbol type.


# 1.45 22-May-2000 jhawk

BREAK gets ddb on the i386 serial console
fix ")." misconstruction (mandoc)


# 1.44 22-May-2000 jhawk

Sort commands alphabetically (wow, much easier to find things now).

Fix few commands using Cm instead of Ic [consisntency].

Make .Bl's -compact in most cases (where items are one-line entries);
dramatically improves readability


# 1.43 21-May-2000 soren

No more 'mach halt' on MIPS.


# 1.42 20-May-2000 jhawk

Comment out "xf" and "xb"; they aren't implemented and don't
ever appear to have been.


# 1.41 15-May-2000 jhawk

Document "!" as a synonym for "call"


# 1.40 13-May-2000 mycroft

GC spurious blank lines.


# 1.39 13-Apr-2000 jhawk

From kern/9569.
Preserve ddb's idea of "count" from one command to the next if
repeating a command via hitting newline.


# 1.38 26-Jan-2000 soren

Remove MIPS/trapdump.
Mention MIPS/kvtop.


# 1.37 22-Jan-2000 takemura

Add a description about key sequences for hpcmips.


Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base comdex-fall-1999-base
# 1.36 28-Oct-1999 lukem

document "sync" command


# 1.35 31-May-1999 ross

branches: 1.35.2;
Document new `L' format modifier.


Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
# 1.34 18-Mar-1999 ross

Revert previous.


# 1.33 18-Mar-1999 ross

Driving directions: serial console to ddb prompt


# 1.32 16-Mar-1999 garbled

More and more of .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages. Many more to
come.


# 1.31 06-Mar-1999 mycroft

Fix minor formatting errors.


# 1.30 22-Jan-1999 msaitoh

Add note about PID.


# 1.29 08-Jan-1999 msaitoh

minor fix


# 1.28 08-Jan-1999 msaitoh

Add dwatch, kill and call.


# 1.27 03-Aug-1998 leo

Add the method to activate DDB on the atari (Julian Coleman).


# 1.26 26-May-1998 msaitoh

note x68k's NMI switch.


# 1.25 24-May-1998 drochner

sync "x/I" section to reality


# 1.24 25-Mar-1998 fair

remove a note about eeprom on Suns - not true.


# 1.23 25-Mar-1998 fair

additional miscellaneous cleanup of "entering debugger" and "machine-specific commands" sections.


# 1.22 25-Mar-1998 fair

add sun3{,x} key sequence to "entering debugger"


# 1.21 25-Mar-1998 fair

The "entering debugger" section moved higher.
Key sequences for "pmax" added to "entering debugger".


# 1.20 25-Mar-1998 fair

fixed the mdoc display formatting for the machine specific commands


# 1.19 24-Mar-1998 fair

Herewith find documentation of the machine/port specific commands
to ddb(4) that I can glean from the source code as requested by PR#1562.

Portmasters, please check for accuracy.

Also, someone with a bit more facility with mdoc(7) should figure
out why I get the odd indentation when I thought I used the macros
in a reasonable fashion...


# 1.18 06-Feb-1998 perry

macroize BSD, NetBSD, FreeBSD and misc cleanup


# 1.17 15-Jan-1998 thorpej

Add DDB key sequences for alpha and mvme68k.


# 1.16 23-Nov-1997 chopps

add amiga interrupt sequence


# 1.15 17-Nov-1997 lukem

* major rewrite from scratch using -mandoc macros (it was a -man.old doc)
* cleaned up a few points, clarifying ambiguous sentences
* documented DDB_HISTORY_SIZE=xxx kernel option, and the appropriate
editing keys
* added notes on how to drop into ddb on the mac68k (from [kern/4501])


# 1.14 24-Oct-1997 chuck

update doc on new "ps" options


Revision tags: netbsd-1-3-base
# 1.13 09-Oct-1997 mycroft

branches: 1.13.2;
Fix many more formatting bugs, and add a section on activating the debugger.


# 1.12 09-Oct-1997 mycroft

Fix a few formatting bugs.


# 1.11 11-Sep-1997 scottr

Document the reboot command.


# 1.10 11-Mar-1997 sommerfe

Document trace/t


# 1.9 08-Mar-1997 mouse

alternate -> alternative, per PR 2643


# 1.8 02-Mar-1997 mikel

.TH argument should be uppercase.


# 1.7 02-Mar-1997 mikel

add the missing SYNOPSIS section.


# 1.6 09-Jan-1997 thorpej

Document "onpanic" built-in variable.


Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base
# 1.5 30-Nov-1994 jtc

Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.


Revision tags: netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
# 1.4 02-Aug-1993 mycroft

Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.


# 1.3 28-Jul-1993 cgd

kill change log


# 1.2 27-Jul-1993 jtc

Set RCS comment leader to .\".


Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
# 1.1 15-Jul-1993 brezak

Man page for DDB