From owner-cvs-src@FreeBSD.ORG Wed Dec 26 18:49:13 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C77016A41A; Wed, 26 Dec 2007 18:49:13 +0000 (UTC) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green.homeunix.org [66.92.150.152]) by mx1.freebsd.org (Postfix) with ESMTP id 573E813C478; Wed, 26 Dec 2007 18:49:13 +0000 (UTC) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.14.2/8.14.1) with ESMTP id lBQIIpMl025852; Wed, 26 Dec 2007 13:18:51 -0500 (EST) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.14.2/8.14.1/Submit) id lBQIIo6k025851; Wed, 26 Dec 2007 13:18:50 -0500 (EST) (envelope-from green) Date: Wed, 26 Dec 2007 13:18:50 -0500 From: Brian Fundakowski Feldman To: Robert Watson Message-ID: <20071226181850.GA6300@green.homeunix.org> References: <200712260933.lBQ9XJi7039100@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200712260933.lBQ9XJi7039100@repoman.freebsd.org> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: 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-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2007 18:49:13 -0000 On Wed, Dec 26, 2007 at 09:33:19AM +0000, Robert Watson wrote: > 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. Wow, very cool debugging feature! Any more sweet DDB features in the pipeline? -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\