<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/ddb/db_command.c, branch release/7.2.0_cvs</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F7.2.0_cvs</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F7.2.0_cvs'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2009-05-01T02:51:58Z</updated>
<entry>
<title>Copy releng/7.2 to release/7.2.0 for FreeBSD 7.2-RELEASE.</title>
<updated>2009-05-01T02:51:58Z</updated>
<author>
<name>Ken Smith</name>
<email>kensmith@FreeBSD.org</email>
</author>
<published>2009-05-01T02:51:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b205d83df7763ca1f099bce5ac12a05862a626c4'/>
<id>urn:sha1:b205d83df7763ca1f099bce5ac12a05862a626c4</id>
<content type='text'>
Approved by:	re (implicit)

This commit was manufactured to restore the state of the 7.2-RELEASE image.
</content>
</entry>
<entry>
<title>MFC: enable dynamic addition of "show all" commands</title>
<updated>2008-04-25T16:50:48Z</updated>
<author>
<name>Sam Leffler</name>
<email>sam@FreeBSD.org</email>
</author>
<published>2008-04-25T16:50:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b5b9292e736be15e27eac5867c8c740c73420fe0'/>
<id>urn:sha1:b5b9292e736be15e27eac5867c8c740c73420fe0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge files:1.1260, db_capture.c:1.2, db_command.c:1.76,</title>
<updated>2008-03-31T21:57:24Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-03-31T21:57:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d164d35c014133e0c25eef9184dbc6a44b270cec'/>
<id>urn:sha1:d164d35c014133e0c25eef9184dbc6a44b270cec</id>
<content type='text'>
db_textdump.c:1.1, ddb.h:1.46, kern_shutdown.c:1.187 from HEAD to
RELENG_7:

  Add textdump(4) facility, which provides an alternative form of kernel
  dump using mechanically generated/extracted debugging output rather than
  a simple memory dump.  Current sources of debugging output are:

  - DDB output capture buffer, if there is captured output to save
  - Kernel message buffer
  - Kernel configuration, if included in kernel
  - Kernel version string
  - Panic message

  Textdumps are stored in swap/dump partitions as with regular dumps, but
  are laid out as ustar files in order to allow multiple parts to be stored
  as a stream of sequentially written blocks.  Blocks are written out in
  reverse order, as the size of a textdump isn't known a priori.  As with
  regular dumps, they will be extracted using savecore(8).

  One new DDB(4) command is added, "textdump", which accepts "set",
  "unset", and "status" arguments.  By default, normal kernel dumps are
  generated unless "textdump set" is run in order to schedule a textdump.
  It can be canceled using "textdump unset" to restore generation of a
  normal kernel dump.

  Several sysctls exist to configure aspects of textdumps;
  debug.ddb.textdump.pending can be set to check whether a textdump is
  pending, or set/unset in order to control whether the next kernel dump
  will be a textdump from userspace.

  While textdumps don't have to be generated as a result of a DDB script
  run automatically as part of a kernel panic, this is a particular useful
  way to use them, as instead of generating a complete memory dump, a
  simple transcript of an automated DDB session can be captured using the
  DDB output capture and textdump facilities.  This can be used to
  generate quite brief kernel bug reports rich in debugging information
  but not dependent on kernel symbol tables or precisely synchronized
  source code.  Most textdumps I generate are less than 100k including
  the full message buffer.  Using textdumps with an interactive debugging
  session is also useful, with capture being enabled/disabled in order to
  record some but not all of the DDB session.
</content>
</entry>
<entry>
<title>Merge files:1.1259, db_command.c:1.75, db_command.h:1.14, db_lex.c:1.23,</title>
<updated>2008-03-30T17:03:58Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-03-30T17:03:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5a751b50e6956c1d685b4314c89c8d69d73e6f81'/>
<id>urn:sha1:5a751b50e6956c1d685b4314c89c8d69d73e6f81</id>
<content type='text'>
db_lex.h:1.15, db_main.c:1.7, db_script.c:1.1-1.2, ddb.h:1.45 from HEAD
to RELENG_7:

  Add a simple scripting facility to DDB(4), allowing the user to
  define a set of named scripts.  Each script consists of a list of DDB
  commands separated by ";"s that will be executed verbatim.  No higher
  level language constructs, such as branching, are provided for:
  scripts are executed by sequentially injecting commands into the DDB
  input buffer.

  Four new commands are present in DDB: "run" to run a specific script,
  "script" to define or print a script, "scripts" to list currently
  defined scripts, and "unscript" to delete a script, modeled on shell
  alias commands.  Scripts may also be manipulated using sysctls in the
  debug.ddb.scripting MIB space, although users will prefer to use the
  soon-to-be-added ddb(8) tool for usability reasons.

  Scripts with certain names are automatically executed on various DDB
  events, such as entering the debugger via a panic, a witness error,
  watchdog, breakpoint, sysctl, serial break, etc, allowing customized
  handling.

  Remove duplicate $FreeBSD$ that snuck in.
</content>
</entry>
<entry>
<title>Merge files:1.1258, db_capture.c:1.1, db_command.c:1.74, db_input.c:1.37,</title>
<updated>2008-03-24T21:24:10Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-03-24T21:24:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=93284e00e648f92c9d487eb6a2e54650a4babf2e'/>
<id>urn:sha1:93284e00e648f92c9d487eb6a2e54650a4babf2e</id>
<content type='text'>
db_main.c:1.6, db_output.c:1.38, ddb.h:1.44 from HEAD to RELENG_7:

  Add a new DDB(4) facility, output capture.  Input and output from DDB
  may be captured to a memory buffer for later inspection using sysctl(8),
  or in the future, to a textdump.

  A new DDB command, "capture", is added, which accepts arguments "on",
  "off", "reset", and "status".

  A new DDB sysctl tree, debug.ddb.capture, is added, which can be used to
  resize the capture buffer and extract buffer contents.
</content>
</entry>
<entry>
<title>Merge db_command.c:1.77 from HEAD to RELENG_7:</title>
<updated>2008-03-10T10:26:03Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-03-10T10:26:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5c2aa891f0e944c9fbec55a0a6b7f2675a5335bc'/>
<id>urn:sha1:5c2aa891f0e944c9fbec55a0a6b7f2675a5335bc</id>
<content type='text'>
  When killing a user process from DDB, check that the requested signal is
  &gt; 0 rather than &gt;= 0, or we will panic when trying to deliver the signal.

  PR:             100802
  Submitted by:   Valerio Daelli &lt;valerio.daelli at gmail.com&gt;
</content>
</entry>
<entry>
<title>Use FOREACH_PROC_IN_SYSTEM instead of using its unrolled form.</title>
<updated>2007-01-17T15:05:52Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2007-01-17T15:05:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f67af5c918c976a630c2a2c8c5b52eac0eb09fb4'/>
<id>urn:sha1:f67af5c918c976a630c2a2c8c5b52eac0eb09fb4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>On trap while inside ddb, the trap handler calls kdb_reenter(), that</title>
<updated>2006-11-02T11:47:38Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2006-11-02T11:47:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=9641e3896639af5a28760765943173991f45930a'/>
<id>urn:sha1:9641e3896639af5a28760765943173991f45930a</id>
<content type='text'>
longjmp to the default context. As result, "alltrace" command may
be prematurely terminated (without error message). This is happens,
for instance, when system is low on memory and referenced page in
kernel-mode thread stack is swapped out.

Protect "alltrace" against termination on trap by setting temporary
kdb_jmpbuf context.

Submitted by:	Peter Holm
</content>
</entry>
<entry>
<title>The powerpc and sparc64 MD `reboot' commands should never have existed</title>
<updated>2006-10-10T07:26:54Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2006-10-10T07:26:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=e4b732cff16955dfb4f191c87c4ae54e64b4dd18'/>
<id>urn:sha1:e4b732cff16955dfb4f191c87c4ae54e64b4dd18</id>
<content type='text'>
since they just duplicated the MI `reset' command.  Instead of removing
them, make `reboot' an MI alias for `reboot' since this gives a better
way of killing the `r' alias for `reset'.  Remove the `registers' command
that was used to kill the alias.

Turn the powerpc and sparc64 MD `halt' command into an MI command.

A copy of sparc64/db_interface.c grew in sun4v just after I found the
extra reboot commands.  It has not been changed, and is now not
identical.  Duplicated commands come out duplicated in ddb's online
help, but cause large problems when used (e.g., on i386's with 2 halt's
and an hwatch, typing h doesn' give the expected message about an
ambiguous command, but hangs like the halt command or a looping parseri
would).
</content>
</entry>
<entry>
<title>Added some aliases:</title>
<updated>2006-10-08T18:37:00Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2006-10-08T18:37:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=75149ab87204005f41b3b2147dde4a96c55a6a6f'/>
<id>urn:sha1:75149ab87204005f41b3b2147dde4a96c55a6a6f</id>
<content type='text'>
- `b' is now an official alias for `break'.  It used to be an unofficial
  alias, but this was broken by adding the `bt' alias for `trace'.
- `t' is now an official alias for `trace'.  It used to be an unofficial
  alias, but this was broken by adding the `thread' command.
- `registers' is now an alias for `show registers'.  This is a hack to
  break the unofficial `r' alias for `reset'.  `r' really means
  `registers' in some debuggers, so I sometimes type it accidentally and
  am annoyed when it resets the system.  A short command shouldn't have
  such a large effect.  Now at least `res' must be typed to disambiguate
  `reset'.
</content>
</entry>
</feed>
