freebsd-skq/sys/ddb
Robert Watson c9b0cc3b96 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
2007-12-26 09:33:19 +00:00
..
db_access.c
db_access.h
db_break.c
db_break.h
db_capture.c Add a new DDB(4) facility, output capture. Input and output from DDB may be 2007-12-25 23:06:51 +00:00
db_command.c Add a simple scripting facility to DDB(4), allowing the user to 2007-12-26 09:33:19 +00:00
db_command.h Add a simple scripting facility to DDB(4), allowing the user to 2007-12-26 09:33:19 +00:00
db_examine.c Make the examine command honor db_pager_quit so you can use 'q' or 'x' 2007-10-27 20:19:11 +00:00
db_expr.c
db_input.c Add a new DDB(4) facility, output capture. Input and output from DDB may be 2007-12-25 23:06:51 +00:00
db_lex.c Add a simple scripting facility to DDB(4), allowing the user to 2007-12-26 09:33:19 +00:00
db_lex.h Add a simple scripting facility to DDB(4), allowing the user to 2007-12-26 09:33:19 +00:00
db_main.c Add a simple scripting facility to DDB(4), allowing the user to 2007-12-26 09:33:19 +00:00
db_output.c Add a new DDB(4) facility, output capture. Input and output from DDB may be 2007-12-25 23:06:51 +00:00
db_output.h
db_print.c
db_ps.c Print the stack bounds of the thread. 2007-10-16 17:52:59 +00:00
db_run.c
db_script.c Add a simple scripting facility to DDB(4), allowing the user to 2007-12-26 09:33:19 +00:00
db_sym.c
db_sym.h
db_thread.c
db_variables.c
db_variables.h
db_watch.c
db_watch.h
db_write_cmd.c
ddb.h Add a simple scripting facility to DDB(4), allowing the user to 2007-12-26 09:33:19 +00:00