path: root/sbin/ddb
diff options
authorRobert Watson <rwatson@FreeBSD.org>2007-12-26 09:33:19 +0000
committerRobert Watson <rwatson@FreeBSD.org>2007-12-26 09:33:19 +0000
commitc9b0cc3b9623c30583400b137b82ec92483435ad (patch)
treea166a654090db301023b94b02c647554eb7320ae /sbin/ddb
parente361d7d421054f4f4a30ff48ed4590ee5292db05 (diff)
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. MFC after: 3 months
Notes: svn path=/head/; revision=174914
Diffstat (limited to 'sbin/ddb')
0 files changed, 0 insertions, 0 deletions