From: Daniel Jacobowitz <drow@false.org>
To: Antony KING <antony.king@st.com>
Cc: gdb@sourceware.org
Subject: Re: [RFC] Add commands to dynamically enable/disable shared library support
Date: Tue, 28 Aug 2007 19:46:00 -0000 [thread overview]
Message-ID: <20070828194615.GA2839@caradoc.them.org> (raw)
In-Reply-To: <46D41D81.3020003@st.com>
On Tue, Aug 28, 2007 at 02:05:05PM +0100, Antony KING wrote:
> The intent of this patch is to be able to control the insertion of the
> breakpoint used to monitor when a shared library is loaded (and so
> update GDB's symbolic information). The reason for this is that when
> debugging boot from ROM applications it is only legitimate to insert a
> breakpoint when the application has been re-located from ROM to RAM. At
> present it is only possible to control this by removing the symbolic
> information (so that GDB does not "see" the special symbol in the target
> application). This is not desirable if one wishes to set a breakpoint
> (using a hardware breakpoint) in the loaded application.
>
> I plan to add these commands to the version of GDB we support, unless
> someone suggests a better solution, but I would also like to get a wider
> opinion (other than my own) on the implementation and whether the
> changes a desirable in standard GDB.
I think that you are fixing a single symptom of a larger problem.
It's not specific to shared library support that the breakpoint can't
be set right away. No other software breakpoints can be set at the
start of execution either, and ideally they should be set
automatically after the copy to RAM.
Can we somehow arrange for your target to notify GDB to recheck all
its software breakpoints? That should work if they're just being
overwritten during the copy to RAM.
If they need to be not inserted at the start of execution,
e.g. because RAM is not yet mapped or the RAM controller initialized,
then we will have to find a more complicated solution.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-08-28 19:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-28 13:05 Antony KING
2007-08-28 19:35 ` Eli Zaretskii
2007-08-30 15:06 ` Antony KING
2007-08-28 19:46 ` Daniel Jacobowitz [this message]
2007-08-30 10:43 ` Antony KING
2007-08-30 12:11 ` Daniel Jacobowitz
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=20070828194615.GA2839@caradoc.them.org \
--to=drow@false.org \
--cc=antony.king@st.com \
--cc=gdb@sourceware.org \
/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