From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Joel Brobecker'" <brobecker@adacore.com>,
"'Pedro Alves'" <pedro@codesourcery.com>
Cc: <pieter.maljaars@altenpts.nl>,
<Peter.Schauer@regent.e-technik.tu-muenchen.de>,
<gdb@sourceware.org>,
"'Joseph S. Myers'" <joseph@codesourcery.com>
Subject: RE: Question about solaris CANNOT_STEP_HW_WATCHPOINTS macro
Date: Fri, 23 Apr 2010 16:17:00 -0000 [thread overview]
Message-ID: <002f01cae300$2a2678f0$7e736ad0$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <20100423140802.GN13204@adacore.com>
> -----Message d'origine-----
> De : gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] De la
> part de Joel Brobecker
> Envoyé : Friday, April 23, 2010 4:08 PM
> À : Pedro Alves
> Cc : pieter.maljaars@altenpts.nl; Pierre Muller;
> Peter.Schauer@regent.e-technik.tu-muenchen.de; gdb@sourceware.org;
> 'Joseph S. Myers'
> Objet : Re: Question about solaris CANNOT_STEP_HW_WATCHPOINTS macro
>
> > (I assume this was x86 or x86-64 solaris, not sparc.) If you
> > _don't_ remove the CANNOT_STEP_HW_WATCHPOINT, then I suppose
> > you'll see watchpoints being missed when you step (since
> > the workaround works by removing watchpoints
> > when single-stepping) on Solaris 10 as well.
>
> Just for the record, I just finished testing on x86-solaris 10,
> and same results as on 8...
We are getting troubles, but I
think that I understood what is going on:
the problem is that it all depends on how you start your
program:
If you use 'break main' followed by 'run',
you will have a breakpoint that is at the exact instruction
that should trigger the watchpoint hit.
But currently GDB disables all breakpoints (including watchpoints)
to step over the breakpoint on main without hitting again the 'int 3'
instruction.
If you use the 'start' command, a temporary breakpoint at the same
location
is created, but the breakpoint is removed by GDB.
Thus the 'next' does not need to disable the breakpoints.
In that configuration you do get a failure with current GDB
due to CANNOT_STEP_OVER_HW_WATCHPOINTS macro that gets
resolved by removing that macro.
I will send a RFA for this test to gdb-patches.
Pierre
next prev parent reply other threads:[~2010-04-23 16:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 7:42 Pieter Maljaars
2010-04-23 12:42 ` Pierre Muller
2010-04-23 12:59 ` Joel Brobecker
2010-04-23 13:27 ` Pedro Alves
2010-04-23 14:08 ` Joel Brobecker
2010-04-23 16:17 ` Pierre Muller [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-04-23 14:05 Pieter Maljaars
2010-04-09 20:07 Pierre Muller
2010-04-22 13:56 ` Joel Brobecker
2010-04-22 15:47 ` Pierre Muller
2010-04-22 16:51 ` Peter Schauer
2010-04-23 0:00 ` Joel Brobecker
2010-04-23 0:56 ` Pedro Alves
2010-04-23 3:36 ` Joel Brobecker
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='002f01cae300$2a2678f0$7e736ad0$@muller@ics-cnrs.unistra.fr' \
--to=pierre.muller@ics-cnrs.unistra.fr \
--cc=Peter.Schauer@regent.e-technik.tu-muenchen.de \
--cc=brobecker@adacore.com \
--cc=gdb@sourceware.org \
--cc=joseph@codesourcery.com \
--cc=pedro@codesourcery.com \
--cc=pieter.maljaars@altenpts.nl \
/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