From: Joel Brobecker <brobecker@adacore.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch] Fix watchpoint-at-epilogue 7.0 regression (s390x)
Date: Sat, 26 Dec 2009 05:36:00 -0000 [thread overview]
Message-ID: <20091226053555.GZ2788@adacore.com> (raw)
In-Reply-To: <20091225142031.GA5442@host0.dyn.jankratochvil.net>
> gdb/
> 2009-12-25 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * breakpoint.c (watchpoint_check): Check the call
> gdbarch_in_function_epilogue_p before calling frame_find_by_id.
> Extend the comment.
This part looks OK to me.
On a more general side, I wondered for a while if frame_find_by_id
should be modified to never raise an exception (and return NULL instead).
But decided that this was probably a bad idea. Using the same kind
of example as provided by Jan, if our program was to stop inside
the epilogue a function called by the block where the expression
is valid, we might end up deleting the watchpoint prematurely.
> gdb/testsuite/
> 2009-12-25 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * gdb.base/watchpoint-cond-gone.exp, gdb.base/watchpoint-cond-gone.c,
> gdb.base/watchpoint-cond-gone-stripped.c: New.
OK, with a few changes:
- The copyright notices needs to be GPL v3;
- One nit, see below.
> + gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
We are now trying to get rid of gdb_suppress_entire_file. Can you just
"return" instead?
BTW: Thank you for using some of the convenience routines. This reminded
me that I wanted to start writing a GDB testcase writing cookbook. Your
testcase had a lot of stuff that I wanted to put in there, so I just
finally started it! Will send an email to gdb@ when I'm done...
--
Joel
next prev parent reply other threads:[~2009-12-26 5:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-25 14:20 Jan Kratochvil
2009-12-26 5:36 ` Joel Brobecker [this message]
2009-12-27 5:33 ` Joel Brobecker
2009-12-27 19:29 ` Jan Kratochvil
2009-12-27 19:56 ` Eli Zaretskii
2009-12-27 20:03 ` Jan Kratochvil
2010-01-19 20:52 ` Jan Kratochvil
2010-01-20 2:48 ` 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=20091226053555.GZ2788@adacore.com \
--to=brobecker@adacore.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@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