From: Jeff Johnston <jjohnstn@redhat.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Andrew Cagney <cagney@gnu.org>, Eli Zaretskii <eliz@gnu.org>,
gdb-patches@sources.redhat.com
Subject: Re: [RFA]: Watchpoints per thread patch
Date: Tue, 09 Nov 2004 19:06:00 -0000 [thread overview]
Message-ID: <4191151F.6070607@redhat.com> (raw)
In-Reply-To: <20041109023306.GA1797@nevyn.them.org>
Daniel Jacobowitz wrote:
> On Mon, Nov 08, 2004 at 09:19:25PM -0500, Andrew Cagney wrote:
>
>>Daniel Jacobowitz wrote:
>>
>>>On Mon, Nov 08, 2004 at 04:32:23PM -0500, Andrew Cagney wrote:
>>>
>>>
>>>>Given our already overcommitted backlog: breakpoints on C++
>>>>constructors, breakpoints on inline code, DW_OP_piece, i18n, multi-arch
>>>>solib, ....; how realistic is it that we'll, in addition, manage to both
>>>>refactor the linux code base (I know this will be slow as I've been
>>>>working on it) and also add multi-threaded watchpoints, all in the 6.4
>>>>time frame?
>>>>
>>>>Let concentrate on clearing existing backlog, and not add another
>>>>promise to the list.
>>>
>>>
>>>*sarcasm*
>>>
>>>You're right. That's an excellent plan. Let's just drop the
>>>multithreaded watchpoint patch, then, if it will never make it
>>>to the front of the backlog.
>>
>>>*sarcasm off*
>>
>>Looks like I touched a raw nerve, eh?
>>
>>Well let me touch another one. Ask any serious developer trying to use
>>GDB and they'll tell you bluntly ``we sux'', and the things I listed
>>(along with multi-threaded watchpoints) are why ``we sux''.
>>
>>Can we sux a lttle less and at least support multi-threaded watchpoints?
>
>
> Yes, you touched a raw nerve. You touched a raw nerve where you are
> attempting to hold contributions from different contributors to
> different standards. For instance, you blocked vsyscall support for
> months because you objected to the quality and design of the code; I
> felt it was of satisfactory quality, but you and I already know that we
> disagree about many aspects of software design.
>
> I think that Jeff's patch, with your suggested kludge, is of much worse
> quality than that was. It's a gross hack around a mechanism that has
> enough existing problems. I do not want it added to GDB, whose average
> quality level is quite bad enough already.
>
>
>>The obvious solution here is to accept a simplified version of the
>>patch, as that way we at least get the feature into 6.4.
>
>
> Not at all. The obvious solution is the same solution we've used
> before: for a developer who cares about this feature to put their
> attention on the necessary cleanups. I've already volunteered to
> resolve the problem of finding the LWP ID for Jeff. Even if it takes me
> a while it'll be plenty of time before 6.4. You're already working on
> the GNU/Linux native target vector cleanup; I'll help. If we want to
> make GDB into _less_ of a pile of crap then adding _more_ crap code to
> it is not the right way to do it!
>
Time out here for a second. I have been modifying this patch according to
"your" comments. I have had a design that had no observers and one that kept
the observation isolated to the linux code.
One key issue of my latest patch you seem to object to is the fact that I now
have to massage the ptid. This was not necessary in the previous design where I
was observing within the linux code where the lwp was readily available. We
both know the low-level code is fundamentally wrong in its assumption regarding
the ptids. They cannot be assumed to be in PID, LWP, 0 format. We get lucky
with register accesses only because the thread-db code is flushing registers in
the lwp format. It is not documented and when low-level code accesses ptids
outside of thread-db, it is wrong. Watchpoints are in the this boat because
they are accessed by breakpoint.c and infrun.c where the ptid is in the wrong
format (PID, 0, TID).
I feel your objection to temporarily massaging these ptids as thread-db.c does
is unreasonable. We need to think of the end-user. The amount of code added is
small and it is trivial to remove this code once the preferred solution is in
place. There is currently no work-around to solving thread bugs involving
memory corruption.
If you have a fix planned soon regarding the ptid format, I have absolutely no
objection to waiting for it. However, if you can't get around to this for a
while due to other commitments or it is going to take some hashing out on the
list, let's stop punishing the end-user and do something helpful while we work
things out proper.
-- Jeff J.
next prev parent reply other threads:[~2004-11-09 19:06 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-19 23:57 Jeff Johnston
2004-10-20 5:04 ` Eli Zaretskii
2004-10-20 11:03 ` Mark Kettenis
2004-10-20 16:21 ` Jeff Johnston
2004-10-20 17:27 ` Andrew Cagney
2004-10-20 17:30 ` Daniel Jacobowitz
2004-10-27 22:36 ` Jeff Johnston
2004-10-27 22:41 ` Daniel Jacobowitz
2004-10-27 23:17 ` Jeff Johnston
2004-10-28 13:33 ` Daniel Jacobowitz
2004-10-28 19:47 ` Jeff Johnston
2004-10-28 19:52 ` Daniel Jacobowitz
2004-10-28 20:13 ` Jeff Johnston
2004-10-28 4:55 ` Eli Zaretskii
2004-11-04 18:25 ` Jeff Johnston
2004-11-04 21:21 ` Eli Zaretskii
2004-11-05 4:49 ` Daniel Jacobowitz
2004-11-05 16:52 ` Andrew Cagney
2004-11-05 18:29 ` Daniel Jacobowitz
2004-11-08 21:33 ` Andrew Cagney
2004-11-09 1:04 ` Daniel Jacobowitz
2004-11-09 2:20 ` Andrew Cagney
2004-11-09 2:33 ` Daniel Jacobowitz
2004-11-09 4:53 ` Eli Zaretskii
2004-11-09 15:11 ` Andrew Cagney
2004-11-09 18:41 ` Daniel Jacobowitz
2004-11-11 21:22 ` Andrew Cagney
2004-11-09 19:06 ` Jeff Johnston [this message]
2004-11-09 19:31 ` Daniel Jacobowitz
2004-11-09 20:24 ` Jim Blandy
2004-11-10 0:02 ` Jeff Johnston
2004-11-10 14:39 ` Jim Blandy
2004-11-11 21:23 ` Andrew Cagney
2004-11-09 20:48 ` Jeff Johnston
2004-11-09 20:50 ` Daniel Jacobowitz
2004-11-10 19:45 ` Eli Zaretskii
2004-11-10 22:08 ` Jeff Johnston
2004-11-10 19:43 ` Eli Zaretskii
2004-10-20 19:27 ` Eli Zaretskii
2004-11-05 11:49 Ulrich Weigand
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=4191151F.6070607@redhat.com \
--to=jjohnstn@redhat.com \
--cc=cagney@gnu.org \
--cc=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
/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