This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Testcase for bug report 11531
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>, Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Date: Fri, 23 Apr 2010 19:15:49 +0100
- Subject: Re: [RFA] Testcase for bug report 11531
- References: <000301cae303$d6d068b0$84713a10$@muller@ics-cnrs.unistra.fr> <20100423172933.GO19194@adacore.com>
On Friday 23 April 2010 18:29:33, Joel Brobecker wrote:
> > +gdb_test "start" ".*Temporary breakpoint.*"
>
> Unfortunately, this does not work when testing with the remote protocol.
> Do use "runto", but use "*main" instead of "main", or something like
> that. That way, you should always stop before the instruction that
> causes the watchpoint to trigger.
>
Or avoid those tricks, and simply put another statement before
the one that triggers the watchpoint:
int
main ()
{
+ myrec.y = 1; <<<<<< runto main stops here instead.
myrec.x = 5;
myrec.y = 3.4;
--
Pedro Alves