From owner-cvs-all@FreeBSD.ORG Sun Mar 30 17:03:59 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 098FF106566C; Sun, 30 Mar 2008 17:03:59 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E755A8FC26; Sun, 30 Mar 2008 17:03:58 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2UH3weC004434; Sun, 30 Mar 2008 17:03:58 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2UH3wjv004433; Sun, 30 Mar 2008 17:03:58 GMT (envelope-from rwatson) Message-Id: <200803301703.m2UH3wjv004433@repoman.freebsd.org> From: Robert Watson Date: Sun, 30 Mar 2008 17:03:58 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_7 Cc: Subject: cvs commit: src/sys/conf files src/sys/ddb db_command.c db_command.h db_lex.c db_lex.h db_main.c db_script.c ddb.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2008 17:03:59 -0000 rwatson 2008-03-30 17:03:58 UTC FreeBSD src repository Modified files: (Branch: RELENG_7) sys/conf files sys/ddb db_command.c db_command.h db_lex.c db_lex.h db_main.c ddb.h Added files: (Branch: RELENG_7) sys/ddb db_script.c Log: Merge files:1.1259, db_command.c:1.75, db_command.h:1.14, db_lex.c:1.23, 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. Revision Changes Path 1.1243.2.9 +1 -0 src/sys/conf/files 1.73.2.3 +31 -5 src/sys/ddb/db_command.c 1.13.10.1 +1 -0 src/sys/ddb/db_command.h 1.22.10.1 +30 -1 src/sys/ddb/db_lex.c 1.14.10.1 +7 -4 src/sys/ddb/db_lex.h 1.5.2.2 +3 -0 src/sys/ddb/db_main.c 1.2.2.1 +562 -0 src/sys/ddb/db_script.c (new) 1.43.2.2 +29 -0 src/sys/ddb/ddb.h