From owner-cvs-src@FreeBSD.ORG Fri Apr 25 17:34:10 2008 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 184811065674; Fri, 25 Apr 2008 17:34:10 +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 E8C758FC27; Fri, 25 Apr 2008 17:34:09 +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 m3PHY9pF063037; Fri, 25 Apr 2008 17:34:09 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m3PHY9dC063036; Fri, 25 Apr 2008 17:34:09 GMT (envelope-from rwatson) Message-Id: <200804251734.m3PHY9dC063036@repoman.freebsd.org> From: Robert Watson Date: Fri, 25 Apr 2008 17:34:09 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/ddb Makefile ddb.8 ddb.c ddb.h ddb_capture.c 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: Fri, 25 Apr 2008 17:34:10 -0000 rwatson 2008-04-25 17:34:09 UTC FreeBSD src repository Modified files: sbin/ddb Makefile ddb.8 ddb.c ddb.h Added files: sbin/ddb ddb_capture.c Log: Add "ddb capture print" and "ddb capture status" commands do ddb(8), alowing the DDB output capture buffer to be easily extracted from user space. Both of these commands include -M/-N arguments, allowing them to be used with kernel crash dumps (or /dev/mem). This makes it easier to use DDB scripting and output capture with minidumps or full dumps rather than with text dumps, allowing DDB output (scripted or otherwise) to be easily extracted from a crash dump. MFC after: 1 week Discussed with: brooks, jhb Revision Changes Path 1.2 +4 -1 src/sbin/ddb/Makefile 1.5 +39 -2 src/sbin/ddb/ddb.8 1.4 +6 -2 src/sbin/ddb/ddb.c 1.2 +1 -0 src/sbin/ddb/ddb.h 1.1 +247 -0 src/sbin/ddb/ddb_capture.c (new)