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:
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
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
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
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
ALSO
.Xr ddb 4
.Sh AUTHOR
This manual page was written by
.An Guillaume Ballet Aq [EMAIL PROTECTED] .
And the patch:
--- ./ddb/db_command.c.orig 2008-08-19 00:56:41.0 +0200
+++ ./ddb/db_command.c 2008-08-24 20:59:41.0 +0200
@@ -45,6 +45,7 @@
#include sys/systm.h
#include sys
On Sat, Jan 31, 2009 at 1:00 PM, freebsd-hackers-requ...@freebsd.org wrote:
Message: 4
Date: Fri, 30 Jan 2009 09:41:58 -0800
From: Matthew Fleming matthew.flem...@isilon.com
Subject: Dynamic ddb commands
To: freebsd-hackers@freebsd.org
Message-ID: 127318.13748.101.ca...@amaretto
7 matches
Mail list logo