Date: Mon, 13 Oct 2003 13:49:35 -0700 (PDT) From: Dan Strick <strick@covad.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/57976: simple kernel DDB enhancement Message-ID: <200310132049.h9DKnZ4B000947@ice.nodomain> Resent-Message-ID: <200310132050.h9DKoOb7065014@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310132049.h9DKnZ4B000947>