This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dwarf2read.c:read_partial_die question


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?

-- 
Daniel Jacobowitz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]