diff options
author | bz <bz@FreeBSD.org> | 2010-05-24 16:41:05 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2010-05-24 16:41:05 +0000 |
commit | 6776200983bceda223944d82e99b820658ecd62b (patch) | |
tree | bdd087309119f3eab516764a7a8a1643c4691a2b /share/man/man4/ddb.4 | |
parent | 36eb388782ebccd910604f919e2bd8f13cc05362 (diff) | |
download | FreeBSD-src-6776200983bceda223944d82e99b820658ecd62b.zip FreeBSD-src-6776200983bceda223944d82e99b820658ecd62b.tar.gz |
MFp4 @178364:
Implement an optional delay to the ddb reset/reboot command.
This allows textdumps to be run automatically with unattended reboots
after a resonable timeout, while still permitting an administrator to
break into debugger if attached to the console at the time of the
event for further debugging. Cap the maximum delay at 1 week to avoid
highly accidental results, and default to 15s in case of problems
parsing the timeout value.
Move hex2dec helper function from db_thread.c to db_command.c to make
it generally available and prefix it with a "db_" to avoid namespace
collisions.
Reviewed by: rwatson
MFC after: 4 weeks
Diffstat (limited to 'share/man/man4/ddb.4')
-rw-r--r-- | share/man/man4/ddb.4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/share/man/man4/ddb.4 b/share/man/man4/ddb.4 index 6f7412e..ce8f377 100644 --- a/share/man/man4/ddb.4 +++ b/share/man/man4/ddb.4 @@ -60,7 +60,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 29, 2008 +.Dd May 24, 2010 .Dt DDB 4 .Os .Sh NAME @@ -1092,9 +1092,13 @@ for a list of signals. Note that the arguments are reversed relative to .Xr kill 2 . .Pp -.It Ic reboot -.It Ic reset +.It Ic reboot Op Ar seconds +.It Ic reset Op Ar seconds Hard reset the system. +If the optional argument +.Ar seconds +is given, the debugger will wait for this long, at most a week, +before rebooting. .Pp .It Ic help Print a short summary of the available commands and command |