From: Daniel Jacobowitz <drow@false.org>
To: PAUL GILLIAM <pgilliam@us.ibm.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] "fix" a problem where a breakpoint would be associated with the wrong source
Date: Fri, 10 Feb 2006 05:33:00 -0000 [thread overview]
Message-ID: <20060210053352.GA11956@nevyn.them.org> (raw)
In-Reply-To: <1139537659.1423.175.camel@dufur.beaverton.ibm.com>
I wrote:
On Thu, Feb 09, 2006 at 06:14:19PM -0800, PAUL GILLIAM wrote:
> On Wed, 2006-02-01 at 20:27 -0500, Daniel Jacobowitz wrote:
> > The patch is definitely wrong, as you suspected. We'd need to see a
> > testcase; it could be bogus, or partially missing, debug information.
> > Is the 'bad' breakpoint in a file with line numbers?
That's still true; Paul, rather than poking around in the symbol
reader, I think we need to know how to reproduce this so that we can
understand what's going on. This code is all very fragile; without
some idea of what you're trying to fix I've got no idea if it's right
or not.
> Here is another patch that 'fixes' the problem.
>
> In symtab.c(find_pc_sect_psymtab), we first see if we can find a symbol
> in the minimal symbol table that contains the PC in the proper section.
> If so, we make sure the PC is a text symbol. But in my case, the section
> is '.opd' so we can't find a minimal symbol.
First of all, why is the PC in .opd? Last time I looked at the PPC64
ABI, which was a while ago, .opd contained descriptors, not code. Are
we actually executing code in .opd? How did it get there? Is there
a partial symbol for the code we're executing (i.e. debug info)?
All the code involving texthigh/textlow is a bit sketchy. Nowadays
we could be recording precise ranges instead, in many cases; Jim
posted a potential interface for that a year or two ago. Maybe
that would fix your problem.
I think that if your patch works, it's just getting lucky and
will break some other case.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-02-10 5:33 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-02 1:25 PAUL GILLIAM
2006-02-02 1:27 ` Daniel Jacobowitz
2006-02-10 2:12 ` PAUL GILLIAM
2006-02-10 5:33 ` Daniel Jacobowitz [this message]
2006-02-14 3:25 ` PAUL GILLIAM
2006-02-14 14:03 ` 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=20060210053352.GA11956@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=pgilliam@us.ibm.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