From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: <pieter.maljaars@altenpts.nl>,
"'Joel Brobecker'" <brobecker@adacore.com>
Cc: <Peter.Schauer@regent.e-technik.tu-muenchen.de>,
<gdb@sourceware.org>,
"'Joseph S. Myers'" <joseph@codesourcery.com>,
"'Pedro Alves'" <pedro@codesourcery.com>
Subject: RE: Question about solaris CANNOT_STEP_HW_WATCHPOINTS macro
Date: Fri, 23 Apr 2010 12:42:00 -0000 [thread overview]
Message-ID: <002301cae2e2$34a4c3e0$9dee4ba0$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <20100423074150.24ae59af@mail.altenpts.nl>
I reproduced Pieter's results and filed
a bug report:
http://sourceware.org/bugzilla/show_bug.cgi?id=11531
This changes the scenery completely:
it becomes important that CANNOT_STEP_HW_WATCHPOINTS macro
does not get set.
If, as Pedro said, GDB does not check for a hardware watchpoint
trigger after the step anyway, the whole code of this macro
becomes useless and only creates problems.
I will try to submit a testcase for this bug report.
Pierre Muller
> -----Message d'origine-----
> De : gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] De la
> part de Pieter Maljaars
> Envoyé : Friday, April 23, 2010 9:42 AM
> À : Joel Brobecker; Pierre Muller
> Cc : Peter.Schauer@regent.e-technik.tu-muenchen.de; gdb@sourceware.org;
> 'Joseph S. Myers'; 'Pedro Alves'
> Objet : Re: Question about solaris CANNOT_STEP_HW_WATCHPOINTS macro
>
> > Looks like a different bug is now occurring:
> >
> > (gdb) start
> > Temporary breakpoint 1 at 0x805067a: file foo.c, line 13.
> > Starting program: [...]/foo
> >
> > Temporary breakpoint 1, main () at foo.c:13
> > 13 myrec.x = 5;
> > (gdb) print myrec.x
> > $1 = 0
> > (gdb) watch myrec.x
> > Hardware watchpoint 2: myrec.x
> > (gdb) s
> > 14 myrec.y = 3.4;
>
> I have tested this with Solaris 2.10 and GDB-7.1. I have removed
> the CANNOT_STEP_HW_WATCHPOINT define. Here this bug does not occur.
>
> (gdb) start
> Temporary breakpoint 1 at 0x8050681: file watchp.c, line 13.
> Starting program: [...]/watchp
>
> Temporary breakpoint 1, main () at watchp.c:13
> 13 myrec.x = 5;
> (gdb) print myrec.x
> $1 = 0
> (gdb) watch myrec.x
> Hardware watchpoint 2: myrec.x
> (gdb) s
> Hardware watchpoint 2: myrec.x
>
> Old value = 0
> New value = 5
> main () at watchp.c:14
> 14 myrec.y = 3.4;
>
>
> Here it works as expected. GDB stops also at the other watchpoint.
> So with "step" and "continue" both watchpoints are triggered, like
> it behaves on x86-linux.
>
> Pieter Maljaars
next prev parent reply other threads:[~2010-04-23 12:42 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 [this message]
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
-- 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='002301cae2e2$34a4c3e0$9dee4ba0$@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