This is the mail archive of the insight@sources.redhat.com mailing list for the Insight 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: duplicated source file names


On Thu, 2003-08-14 at 15:01, John Williams wrote:
> > - "list ext2_read_super": Does it return the correct source?
> 
> Nope - it lists the "correct" line numbers from the wrong file.  I'm 
> guessing this is a problem in the binutils addr2line, is that what it's for?

Close. Binutils doesn't really read debug info the way gdb does. They
both try to do the same thing, but gdb looks at it slightly differently.

> > - "tk gdbtk_loc ext_read_super": Right info?
>
> I get - Error: invalid command name "gdbtk_loc"

Oops. Should have been "gdb_loc" not "gdbtk_loc".

> Yeah I realise that - this is a cross-debugger for an embedded system, 
> short of forward-porting it myself (*not* gonna happen!) I don't really 
> have a lot of options.

Ah. Understood.

> I'm not too stressed about this, I can just rename the source file and 
> rebuild the project as I need to, just wanted to know if there was 
> something simple I might do.
> 

Yeah -- that's been the sad approach used by most. As I recall we have a
file in gdb that used to use the same filename as another file in bfd.
Instead fixing gdb, someone renamed gdb's file!

Keith



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