Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Aug 2008 10:15:35 -0700
From:      Sam Leffler <sam@freebsd.org>
To:        Guillaume Ballet <gballet@gmail.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Extending the ddb command set
Message-ID:  <48A70B37.60401@freebsd.org>
In-Reply-To: <fd183dc60808160203r3d90c26dq4d282d2ef153d2db@mail.gmail.com>
References:  <fd183dc60808160203r3d90c26dq4d282d2ef153d2db@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Guillaume Ballet wrote:
> 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<http://people.freebsd.org/%7Ejhb/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?
>
>   
That is correct; you can't add ddb cmds from modules.  It should be 
doable; just hasn't been done yet.

    Sam




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48A70B37.60401>