From: Joel Brobecker <brobecker@adacore.com>
To: Caz Yokoyama <cazyokoyama@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: symbolic debug of loadable modules with kgdb light
Date: Fri, 09 Jan 2009 18:17:00 -0000 [thread overview]
Message-ID: <20090109181720.GD31296@adacore.com> (raw)
In-Reply-To: <B309185F068440258D5FDBA9F074D5B6@xpjpn>
Caz,
I have a few remarks:
> I have attached the patch against gdb-6.8.
The patches first need to be brought up to date with our CVS head.
Our gdb-6.8 branch is more or less dead at this point, and the
current CVS head is sometimes significantly different from gdb-6.8.
Also, the patches should be broken down into small patches. I don't
know how well the other maintainers know the Linux kernel (I suspect
some of them know it very well), but most of us don't have much time
available to do code review. So breaking down the patches and explaining
what they are about is very very very very very very helpful. If you
don't do that, unless someone from the GDB Maintainers group is
expecially motivated in getting the feature you are submitting,
you are dramatically reducing your chances of us reviewing your patch.
> - This patch is based on http://kgdb.cvs.sourceforge.net/viewvc/kgdb/gdb/. I
> removed garbage as mush as possible.
I tried to have a look at who the authors are. The changes need to be
assigned to the FSF. I'm not a big specialist in legal matters, but
I believe that only the author of the changes can do that; someone
else who knows better about might want to confirm or correct. There
is a provision for changes that are obvious, or small (usually less
than 10 lines). But this patch does not qualify. Some parts of it
might.
> But it still has the code which I don't know what it is.
As far as I am concerned, this is a problem. I personally am not going
to approve changes whose purpose I don't understand. My approach in
this case has always been to leave the change aside, and wait until
I hit a problem. If that change ends up fixing the problem, at least
I will know why (and I will make sure to add a comment besides the
code).
> - I haven't run testsuite because I could not find how to do that while I
> run make in testsuite directory.
The magic command for testing your changes natively is "make check".
What you need to do is run the testsuite before and after your
changes, and make sure that it does not introduce any regression.
Somes parts of the patch will be hard to exercise except manually,
since they refer to debugging kernel modules, which I don't think
is something that our testsuite knows how to do...
I hope all the above doesn't discourage you...
--
Joel
next prev parent reply other threads:[~2009-01-09 18:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-08 14:09 Caz Yokoyama
2009-01-08 19:04 ` Tiago Maluta
2009-01-08 19:40 ` Caz Yokoyama
2009-01-08 19:42 ` Caz Yokoyama
2009-01-09 4:18 ` Joel Brobecker
2009-01-09 14:52 ` Caz Yokoyama
2009-01-09 18:17 ` Joel Brobecker [this message]
2009-01-09 19:33 ` Caz Yokoyama
2009-01-10 6:40 ` Daniel Jacobowitz
[not found] ` <B28296C4454C4B539564033161523A12@xpjpn>
2009-01-11 3:38 ` Joel Brobecker
2009-01-09 11:11 ` Jan Kiszka
2009-01-09 11:28 ` Caz Yokoyama
2009-01-09 12:38 ` Jan Kiszka
2009-01-09 16:29 ` Caz Yokoyama
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090109181720.GD31296@adacore.com \
--to=brobecker@adacore.com \
--cc=cazyokoyama@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox