<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/ddb/db_script.c, branch release/8.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F8.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2007-12-26T10:51:07Z</updated>
<entry>
<title>Remove duplicate $FreeBSD$ that snuck in.</title>
<updated>2007-12-26T10:51:07Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2007-12-26T10:51:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=44daa2da55636aae9df0c71d5878fa787778b178'/>
<id>urn:sha1:44daa2da55636aae9df0c71d5878fa787778b178</id>
<content type='text'>
MFC after:	3 months
</content>
</entry>
<entry>
<title>Add a simple scripting facility to DDB(4), allowing the user to</title>
<updated>2007-12-26T09:33:19Z</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2007-12-26T09:33:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c9b0cc3b9623c30583400b137b82ec92483435ad'/>
<id>urn:sha1:c9b0cc3b9623c30583400b137b82ec92483435ad</id>
<content type='text'>
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.

MFC after:	3 months
</content>
</entry>
</feed>
