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: [MI] -file-list-exec-source-files


On Tue, Feb 17, 2004 at 02:33:27PM -0500, Daniel Jacobowitz wrote:
> On Tue, Feb 17, 2004 at 02:30:01PM -0500, Bob Rossi wrote:
> > On Tue, Feb 17, 2004 at 02:12:38PM -0500, Daniel Jacobowitz wrote:
> > > On Tue, Feb 17, 2004 at 02:10:05PM -0500, Bob Rossi wrote:
> > > > I have one last question that didn't get answered, could the psymtab be
> > > > modified to contain the dirname?
> > > 
> > > Probably, but the dirname -> fullname conversion may be expensive - it
> > > involves a lot of stat() calls.
> > 
> > I could definatly use some advice getting the dirname into the psymtab.
> > I don't mind spending time implementing it if I could get a little
> > pointer in the right direction. It seems I would have to change both the
> > stabs reader and the dwarf2 reader. Is that correct?
> 
> Yes, I think so.  Dwarf2 should be easy.  Stabs will be a little
> harder.  Take a look at patch_subfile_names.

Thanks, I think I got the Stabs version working.
Do you have a heads up for the Dwarf2 version?

Funny enough, Stabs was much easier for me to get done than Dwarf2.
I am  currently looking at the function dwarf2_build_psymtabs_hard.
Does this sound right?

As far as I know, this will be the last step to the patch I'm
generating. Also, I will only have Stabs and Dwarf-2 working. Anyone
know of another debug format I should be looking into?

Any help would be appreciated,
Bob Rossi


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