[PATCH] Extending the ddb command set

2008-09-08 Thread Guillaume Ballet
Hello hackers, I sent a patch some time ago, allowing modules to extend the ddb command set. I just realized the link I provided then was in French so that might have discouraged people from going any further. I have therefore posted it here. Also, since I would like this patch to be committed at

Re: Extending the ddb command set

2008-08-24 Thread Guillaume Ballet
On Mon, Aug 18, 2008 at 2:02 PM, John Baldwin [EMAIL PROTECTED] wrote: (snip) A simpler approach is probably to make DB_COMMAND() use a SYSINIT to register new functions instead of teaching DDB about that linker set. You just need to write a shared register_command() function (and a

Re: Extending the ddb command set

2008-08-18 Thread Guillaume Ballet
On Sun, Aug 17, 2008 at 6:23 PM, Sam Leffler [EMAIL PROTECTED] wrote: (snip) Last I looked at this I was convinced it could be done using SYSINIT's and the existing mechanisms for adding ddb cmds. I don't think you need to modify the linker or ddb. Not sure if you looked sys/module.h and/or

Re: Extending the ddb command set

2008-08-18 Thread John Baldwin
On Sunday 17 August 2008 01:17:54 pm Guillaume Ballet wrote: On Sat, Aug 16, 2008 at 5:15 PM, Sam Leffler [EMAIL PROTECTED] wrote: 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.

Re: Extending the ddb command set

2008-08-17 Thread Guillaume Ballet
On Sat, Aug 16, 2008 at 5:15 PM, Sam Leffler [EMAIL PROTECTED] wrote: 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:

Re: Extending the ddb command set

2008-08-17 Thread Guillaume Ballet
It is indeed doable: Here are the diffs for a first attempt at doing this. I am not entirely satisfied with it, though, as it does not work with DB_SHOW_COMMAND and the likes... Also, I have to declare a lot of ddb-related stuff into kern_linker.c and I don't like it. I am currently working

Re: Extending the ddb command set

2008-08-17 Thread Kostik Belousov
On Sun, Aug 17, 2008 at 05:17:54PM +, Guillaume Ballet wrote: On Sat, Aug 16, 2008 at 5:15 PM, Sam Leffler [EMAIL PROTECTED] wrote: 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

Re: Extending the ddb command set

2008-08-17 Thread Sam Leffler
Guillaume Ballet wrote: On Sat, Aug 16, 2008 at 5:15 PM, Sam Leffler [EMAIL PROTECTED] wrote: 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

Extending the ddb command set

2008-08-16 Thread Guillaume Ballet
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:

Re: Extending the ddb command set

2008-08-16 Thread Sam Leffler
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: