<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sys/ddb, branch stable/7</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=stable%2F7'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<updated>2011-03-25T18:16:49Z</updated>
<entry>
<title>MFC r218825.  [The implementation change to kdb_sysctl_available()</title>
<updated>2011-03-25T18:16:49Z</updated>
<author>
<name>Matthew D Fleming</name>
<email>mdf@FreeBSD.org</email>
</author>
<published>2011-03-25T18:16:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=c6b1cb828956ca50799ea4bde49ad0d306075acf'/>
<id>urn:sha1:c6b1cb828956ca50799ea4bde49ad0d306075acf</id>
<content type='text'>
cannot be MFC'd as it requires a non-MFCable change (adding drains to
sbuf)].

Modify kdb_trap() so that it re-calls the dbbe_trap function as long as
the debugger back-end has changed.  This means that switching from ddb
to gdb no longer requires a "step" which can be dangerous on an
already-crashed kernel.

Also add a capability to get from the gdb back-end back to ddb, by
typing ^C in the console window.

While here, simplify kdb_sysctl_available() by using
sbuf_new_for_sysctl(), and use strlcpy() instead of strncpy() since the
strlcpy semantic is desired.
</content>
</entry>
<entry>
<title>Merge db_capture.c:1.6 (178492) from head to stable/7:</title>
<updated>2008-07-01T12:15:55Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-07-01T12:15:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=54e4b7b06472b43163ca611611311cd5d22c06f5'/>
<id>urn:sha1:54e4b7b06472b43163ca611611311cd5d22c06f5</id>
<content type='text'>
  Rename debug.ddb.capture.bytes sysctl to debug.ddb.capture.bufoff in
  order to match the internal variable name.

  Add a new sysctl debug.ddb.capture.inprogress to export the inprogress
  variable.
</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-test/commit/?id=b5b9292e736be15e27eac5867c8c740c73420fe0'/>
<id>urn:sha1:b5b9292e736be15e27eac5867c8c740c73420fe0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge db_examine.c:1.35 from HEAD to RELENG_7:</title>
<updated>2008-04-01T11:48:25Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-04-01T11:48:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=913f0eab9e186df90185e86fd3df4d659bf5988a'/>
<id>urn:sha1:913f0eab9e186df90185e86fd3df4d659bf5988a</id>
<content type='text'>
  Add a /S mode to DDB "ex" command, which interprets and prints the
  value at the requested address as a symbol.  For example, "ex /S
  aio_swake" prints the name of the function currently registered in
  via aio_swake hook.

  The change as committed differs slightly from the patch in the PR,
  as I force the size of the retrieved value (and the automatic
  address increment) to be sizeof(void *).  This seems to provide
  the most useful auto-increment behavior, and defaults using the
  default size (4), which is not sizeof(void *) on 64-bit platforms.

  PR:             57976
  Submitted by:   Dan Strick &lt;strick at covad.net&gt;
</content>
</entry>
<entry>
<title>Merge db_textdump.c:1.3 from HEAD to RELENG_7:</title>
<updated>2008-04-01T11:39:04Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-04-01T11:39:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=7c646776774629a58f0689ad76c5ad80f8ec792b'/>
<id>urn:sha1:7c646776774629a58f0689ad76c5ad80f8ec792b</id>
<content type='text'>
  Use dump_write() instead of direct calls to di-&gt;dumper() in textdumps.
  Textdumps already do pretty much the same sanity checking, but
  abstractions and seatbelts are both useful.
</content>
</entry>
<entry>
<title>Merge db_capture.c:1.5 from HEAD to RELENG_7:</title>
<updated>2008-04-01T11:31:18Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-04-01T11:31:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=a8f1412e7f91cd108190ca70f642585e9d0cb850'/>
<id>urn:sha1:a8f1412e7f91cd108190ca70f642585e9d0cb850</id>
<content type='text'>
  Increase maximum DDB capture buffer size to 5MB.

  PR:             119993
  Suggested by:   Scot Hetzel &lt;swhetzel at gmail dot com&gt;
</content>
</entry>
<entry>
<title>Merge options:1.616, db_capture.c:1.4 from HEAD to RELNEG_7:</title>
<updated>2008-04-01T11:23:32Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-04-01T11:23:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=bfa0ab79735d54c9c8e0e4164838efae8a5b28bd'/>
<id>urn:sha1:bfa0ab79735d54c9c8e0e4164838efae8a5b28bd</id>
<content type='text'>
  Allow DDB_CAPTURE_DEFAULTBUFSIZE and DDB_CAPTURE_MAXBUFSIZE to be
  overridden at compile-time using kernel options of the same names.

  Rather than doing a compile-time CTASSERT of buffer sizes being
  even multiples of block sizes, just adjust them at boottime, as
  the failure mode is more user-friendly.

  MFC after:      2 months
  PR:             119993
  Suggested by:   Scot Hetzel &lt;swhetzel at gmail dot com&gt;
</content>
</entry>
<entry>
<title>Merge db_capture.c:1.3 from HEAD to RELENG_7:</title>
<updated>2008-03-31T22:09:00Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-03-31T22:09:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=8373f699c2269585c0834e3a6673d93f521e7fd1'/>
<id>urn:sha1:8373f699c2269585c0834e3a6673d93f521e7fd1</id>
<content type='text'>
  Rename DB_ constants in db_capture.c to DDB_ so that when they are
  exposed as kernel compile options, they have more meaningful names.

  PR:             119993
  MFC after:      2 months
  Suggested by:   Scot Hetzel &lt;swhetzel at gmail dot com&gt;
</content>
</entry>
<entry>
<title>Merge db_textdump.c:1.2 from HEAD to RELENG_7:</title>
<updated>2008-03-31T22:05:09Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2008-03-31T22:05:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=fa810aef023c7ae514e5c00324b699275ed9684d'/>
<id>urn:sha1:fa810aef023c7ae514e5c00324b699275ed9684d</id>
<content type='text'>
  Refine textdump comments slightly.
</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-test/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>
</feed>
