From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] re-read symbols before "start"-ing...
Date: Tue, 08 Mar 2005 13:48:00 -0000 [thread overview]
Message-ID: <20050308134809.GE7417@nevyn.them.org> (raw)
In-Reply-To: <20050308064529.GB18053@adacore.com>
On Mon, Mar 07, 2005 at 10:45:29PM -0800, Joel Brobecker wrote:
> What happens here is that we insert the breakpoint *before* the
> notification is received. So we end up using the cached value
> for the main procedure name, which is out of date. The answer
> is to make sure the symbols are re-read if the executable has
> changed.
>
> Bad point for me, sorry... Fortunatly, only Ada is affected for now.
> Attached is a patch.
>
> 2005-03-07 Joel Brobecker <brobecker@adacore.com>
>
> * infcmd.c (start_command): Make sure the symbols are up to date
> before setting the temporary breakpoint.
>
> Tested on x86-linux. This fixes the FAIL above. Otherwise, the results
> are identical.
>
> OK to commit?
Just my two cents, but I think you may want to add an argument to
run_command, instead, and create the breakpoint there. For instance
there's probably a case where you'll need reopen_exec_file (). And
reread_symbols is passably expensive - lots of stat().
--
Daniel Jacobowitz
CodeSourcery, LLC
next prev parent reply other threads:[~2005-03-08 13:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-08 6:45 Joel Brobecker
2005-03-08 13:48 ` Daniel Jacobowitz [this message]
2005-03-08 21:28 ` Joel Brobecker
2005-03-08 21:45 ` Daniel Jacobowitz
2005-03-08 22:12 ` 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=20050308134809.GE7417@nevyn.them.org \
--to=drow@false.org \
--cc=brobecker@adacore.com \
--cc=gdb-patches@sources.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