From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 09:30:33 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D51381065679 for ; Sat, 16 Aug 2008 09:30:33 +0000 (UTC) (envelope-from gballet@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id AE17D8FC1A for ; Sat, 16 Aug 2008 09:30:33 +0000 (UTC) (envelope-from gballet@gmail.com) Received: by wa-out-1112.google.com with SMTP id j4so755757wah.3 for ; Sat, 16 Aug 2008 02:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=c4AaY97wwHAhKclayJIHgU9o0hb6OCEsEsUoUdbzonI=; b=c5kboh3+JjOn/URKBHjz0dWB4SOA0DW5o636VZ8bE0aPS9BICH19T8ut6fHuxv6P6O db8rapSbUe+EH/r6kYsZBS23jE+ZCQKEQNRQCPA3Ia5/5uTv9FvByeVGcFA3O6RQGw4I jRZLchEcAzIgqJeAMO3Cg0lKlfi6kb7GBK04s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=ada+tpKNi7ISN9qd6NXMtsmfwYDWASH2kPeRkHUzw/eHr0opBE/PNzk4ipcdJAmy6E r3sCAPDbvb0fINbHgvplmJi9OzT6IBk5HkNWo7B+rfYWxrKTtW058QYlrngZxPKml6q9 296ZCIZSzj4+a/Ob1PBEdcBtZDFiyjSw874uY= Received: by 10.114.151.13 with SMTP id y13mr3533299wad.145.1218877386982; Sat, 16 Aug 2008 02:03:06 -0700 (PDT) Received: by 10.115.16.9 with HTTP; Sat, 16 Aug 2008 02:03:06 -0700 (PDT) Message-ID: Date: Sat, 16 Aug 2008 09:03:06 +0000 From: "Guillaume Ballet" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Extending the ddb command set X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 09:30:33 -0000 Hello hackers, I am currently working on a small project and would like to add a few commands to the set that is available in ddb. I found that very interesting albeit succinct presentation: http://people.freebsd.org/~jhb/papers/bsdcan/2008/slides.odp where the author hints that I should use DB_COMMAND, which I did. Yet when invoking ddb, the command does not appear in the help list. I have taken a look at the source code and was expecting set_db_cmd_set to appear in my module's section list when calling objdump -h Is DB_COMMAND only working within the kernel itself, and not modules? Guillaume