From: Daniel Jacobowitz <drow@false.org>
To: Pedro Alves <pedro@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Fix execl.exp sporadic failures
Date: Mon, 07 Jul 2008 19:10:00 -0000 [thread overview]
Message-ID: <20080707191036.GC11544@caradoc.them.org> (raw)
In-Reply-To: <200807030143.08682.pedro@codesourcery.com>
On Thu, Jul 03, 2008 at 01:43:08AM +0100, Pedro Alves wrote:
> 2008-07-03 Pedro Alves <pedro@codesourcery.com>
>
> * breakpoint.c (mark_breakpoints_out): Make public.
> (update_breakpoints_after_exec): Don't call mark_breakpoints_out
> here. Update comment.
> * breakpoint.h (mark_breakpoints_out): Declare.
>
> * linux-nat.c (linux_handle_extended_wait): On
> TARGET_WAITKIND_EXECD, call mark_breakpoints_out.
> * inf-ttrace.c (inf_ttrace_wait): Likewise.
I don't like this patch - it duplicates knowledge into each GDB
target that should be global - but your logic is sound. It's OK.
> + /* There used to be a call to mark_breakpoints_out here with the
> + following comment:
> +
> + Doing this first prevents the badness of having
> + delete_breakpoint() write a breakpoint's current "shadow
> + contents" to lift the bp. That shadow is NOT valid after an
> + exec()!
> +
> + The concern is valid, but it was found that there are logical
> + places to delete breakpoints after detecting an exec and before
> + reaching here. The call has since moved closer to where the each
> + target detects an exec. */
> +
Please remove this comment, or write one that describes the current
state (bonus points for an assertion). Comments that describe how GDB
used to be grow more confusing with their age.
> /* The binary we used to debug is now gone, and we're updating
> breakpoints for the new binary. Until we're done, we should not
This comment is now out of date, but it's removed by the other patch I
just approved, very nice :-)
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-07-07 19:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 0:43 Pedro Alves
2008-07-07 19:10 ` Daniel Jacobowitz [this message]
2008-07-08 11:05 ` Pedro Alves
2008-07-08 11:40 ` Pedro Alves
2008-07-08 15:29 ` Stan Shebs
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=20080707191036.GC11544@caradoc.them.org \
--to=drow@false.org \
--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