From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: hardware watchpoints in non-stop - "moribund"/delayed watchpoint traps
Date: Wed, 18 Nov 2009 18:40:00 -0000 [thread overview]
Message-ID: <20091118183917.GA30279@host0.dyn.jankratochvil.net> (raw)
In-Reply-To: <200911181750.50292.pedro@codesourcery.com>
On Wed, 18 Nov 2009 18:50:50 +0100, Pedro Alves wrote:
> if (debug_infrun
> && !bpstat_explains_signal (ecs->event_thread->stop_bpstat)
> && stopped_by_watchpoint)
> fprintf_unfiltered (gdb_stdlog,
> "infrun: no user watchpoint explains watchpoint event, ignoring");
>
> so that we can tell from the logs if something is reporting bad
> watchpoint SIGTRAPs.
The problem is it is not clear from this message there is a GDB bug and the
testsuite already contains too many racy failures to be catching more of them.
> At first I thought so, but, I then changed my mind into thinking the extra
> complexity isn't necessary. We needed the moribund breakpoint locations
> heuristic, to be able to distinguish random SIGTRAPs from delayed software
> breakpoint traps. We don't keep them indefinitly, so to reduce the
> chances of mistaking a real random SIGTRAP from a delayed software
> breakpoint SIGTRAP. We don't need the heuristic with hardware watchpoint
> traps --- we can always tell the difference.
The heuristic can be disabled in the all-stop mode remembering all watchpoint
locations indefinitely exactly until count_events_callback() reports zero.
Still the moribund infrastructure is IMO suitable for this task.
But sure your patch is better than the current state and I can post what
I find more strict later.
Thanks,
Jan
next prev parent reply other threads:[~2009-11-18 18:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-18 14:46 Pedro Alves
2009-11-18 17:01 ` Jan Kratochvil
2009-11-18 17:51 ` Pedro Alves
2009-11-18 18:40 ` Jan Kratochvil [this message]
2009-11-18 19:46 ` Pedro Alves
2009-11-18 20:52 ` Jan Kratochvil
2009-11-20 14:15 ` Pedro Alves
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=20091118183917.GA30279@host0.dyn.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro@codesourcery.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