From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 13 13:50:27 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F064716A4B3 for ; Mon, 13 Oct 2003 13:50:26 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A53E43F85 for ; Mon, 13 Oct 2003 13:50:25 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h9DKoOFY065015 for ; Mon, 13 Oct 2003 13:50:24 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h9DKoOb7065014; Mon, 13 Oct 2003 13:50:24 -0700 (PDT) (envelope-from gnats) Resent-Date: Mon, 13 Oct 2003 13:50:24 -0700 (PDT) Resent-Message-Id: <200310132050.h9DKoOb7065014@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dan Strick Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2944716A4B3 for ; Mon, 13 Oct 2003 13:49:33 -0700 (PDT) Received: from smtp.covadmail.net (mx05.covadmail.net [63.65.120.65]) by mx1.FreeBSD.org (Postfix) with SMTP id 9719143F85 for ; Mon, 13 Oct 2003 13:49:31 -0700 (PDT) (envelope-from strick@covad.net) Received: (covad.net 1096 invoked from network); 13 Oct 2003 20:49:26 -0000 Received: from unknown (HELO ice.nodomain) (68.165.100.159) by sun-qmail10 with SMTP; 13 Oct 2003 20:49:26 -0000 Received: from ice.nodomain (localhost [127.0.0.1]) by ice.nodomain (8.12.8p1/8.12.8) with ESMTP id h9DKnZIl000948 for ; Mon, 13 Oct 2003 13:49:36 -0700 (PDT) (envelope-from dan@ice.nodomain) Received: (from dan@localhost) by ice.nodomain (8.12.8p1/8.12.8/Submit) id h9DKnZ4B000947; Mon, 13 Oct 2003 13:49:35 -0700 (PDT) Message-Id: <200310132049.h9DKnZ4B000947@ice.nodomain> Date: Mon, 13 Oct 2003 13:49:35 -0700 (PDT) From: Dan Strick To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/57976: simple kernel DDB enhancement X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dan Strick List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Oct 2003 20:50:27 -0000 >Number: 57976 >Category: kern >Synopsis: simple kernel DDB enhancement >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 13 13:50:24 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Dan Strick >Release: FreeBSD in general >Organization: >Environment: System: FreeBSD ice 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Sun Apr 6 21:47:39 PDT 2003 root@ice:/usr/src/sys/compile/ICE i386 >Description: This is not bug report but a request for a trivial but potentially very useful enhancement to the kernel DDB facility. In function db_examine() in the source file /sys/ddb/db_examine.c, add something like this: case 'S': /* symbolic */ value = db_get_value(addr, size, FALSE); addr += size; db_printsym(value, DB_STGY_ANY); break; to the examine format switch, for example just before the line: case 'c': /* character */ This would create a new examine modifer format that expresses a value as a global_symbol+offset instead of just a non-obvious number. This might be very useful when examining pointers in memory. Presumably the DDB(4) man page would also be modified to mention the new format. This would also be a good time to add a description of the DDB "panic" command which has somehow escaped mention on the man page. Dan Strick strick@covad.net >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: