From: Daniel Jacobowitz <drow@false.org>
To: Aleksandar Ristovski <aristovski@qnx.com>
Cc: gdb@sources.redhat.com
Subject: Re: catch catch before program starts
Date: Tue, 29 Apr 2008 18:58:00 -0000 [thread overview]
Message-ID: <20080428210734.GA18467@caradoc.them.org> (raw)
In-Reply-To: <fv5dc5$51m$1@ger.gmane.org>
On Mon, Apr 28, 2008 at 04:51:17PM -0400, Aleksandar Ristovski wrote:
> Hello,
>
> When we first load symbols, we can not set "catch catch" or "catch throw". The error message will say "Function __cxa_... not defined".
>
> However, we can set a breakpoint in .plt section. The attached patch illustrates this (it is not finished as there will be some error messages even though the catch will be set).
I suggest this be handled in the generic breakpoint-setting code, not
specific to "catch". It's not a complete solution, by the way: it
will only help if the main executable uses catch / throw. If only
shared libraries do, then there won't be a PLT entry in the
executable. So maybe we should allow these breakpoints to be created
"pending"?
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2008-04-28 21:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-29 18:56 Aleksandar Ristovski
2008-04-29 18:58 ` Daniel Jacobowitz [this message]
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=20080428210734.GA18467@caradoc.them.org \
--to=drow@false.org \
--cc=aristovski@qnx.com \
--cc=gdb@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