Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: gdb@sources.redhat.com
Subject: Re: dwarf2read.c:read_partial_die question
Date: Wed, 09 Jun 2004 17:58:00 -0000	[thread overview]
Message-ID: <20040609175819.GC11598@white> (raw)
In-Reply-To: <20040609170429.GA29996@nevyn.them.org>

On Wed, Jun 09, 2004 at 01:04:29PM -0400, Daniel Jacobowitz wrote:
> On Wed, Jun 09, 2004 at 12:05:26PM -0400, Bob Rossi wrote:
> > > > This is the comment in the testcase (twice.exp) that is producing this
> > > > behavior
> > > >        # Test that GDB can still detect whether we have line numbers
> > > >        # even if we're executing code in an include file.
> > > 
> > > Check what GCC is emiting (readelf -wi); do you have a compilation unit
> > > missing these attributes, or have we lost track of them somehow?
> > 
> > Whoa, readelf is a great command! I was trying to read the assembly file
> > when I wrote the patch :) Since I don't know what part of this file to
> > send in, the whole thing is below.
> > 
> > Basically, I just run the twice.exp testcase, and then I ran GDB on
> > twice-tmp. Here's the output. It looks as if the compiler is not
> > outputting the DW_AT_comp_dir directive for this file. Is this a bug in
> > GCC?
> 
> I don't think so.  There's an absolute path so DW_AT_comp_dir would not
> add any information.  Is there some reason we can't cope with this?

OK, I understand. No I don't think that there has to be a
DW_AT_comp_dir for this file. The -file-list-exec-source-files patch I
have was causing GDB to segfault because I assummed that the data would
always be there. I fixed the segfault so all should be good. I just
wanted to make sure I wasn't covering something up that was broken at a
deeper level.

Thanks,
Bob Rossi


      reply	other threads:[~2004-06-09 17:58 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-09 15:42 Bob Rossi
2004-06-09 15:45 ` Daniel Jacobowitz
2004-06-09 16:06   ` Bob Rossi
2004-06-09 17:04     ` Daniel Jacobowitz
2004-06-09 17:58       ` Bob Rossi [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=20040609175819.GC11598@white \
    --to=bob@brasko.net \
    --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