This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC/dwarf-2] Add support for included files
- From: Joel Brobecker <brobecker at gnat dot com>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: Daniel Jacobowitz <drow at mvista dot com>,Eli Zaretskii <eliz at elta dot co dot il>, gdb-patches at sources dot redhat dot com
- Date: Mon, 3 May 2004 09:25:03 -0700
- Subject: Re: [RFC/dwarf-2] Add support for included files
- References: <vt2d66jdbd8.fsf@zenia.home> <20040413052021.GA1173@gnat.com> <vt2isg25qfu.fsf@zenia.home> <20040415221338.GF1564@gnat.com> <vt2brls1rjy.fsf@zenia.home> <20040416230825.GK22414@gnat.com> <vt24qr2nz4j.fsf@zenia.home> <20040501011418.GG16083@gnat.com> <vt24qr0lpei.fsf@zenia.home>
> Let me make sure I've got it right. When we're calling
> dwarf_decode_lines for the partial symbol tables, we never call
> dwarf2_start_subfile anyway --- that's for building full symbol tables
> --- so the use of 'dirname' in that function doesn't matter. And
> since it's never used to compute the full name of the symtabs, it
> doesn't introduce inconsistencies to omit it.
That's right. I updated a bit the comment for that function to include
this information. I think it was worthwhile. Here is the new comment
describing the function. If you think any change needs to be made, let
me know, I'll gladly make them.
2. If PST is not NULL, this procedure reads the program to determine
the list of files included by the unit represented by PST, and
builds all the associated partial symbol tables. In this case,
the value of COMP_DIR is ignored, and can thus be NULL (the COMP_DIR
is not used to compute the full name of the symtab, and therefore
omitting it when building the partial symtab does not introduce
the potential for inconsistency - a partial symtab and its associated
symbtab having a different fullname -). */
> If that's correct, then this patch is ready to commit. Thanks very
> much!
Thanks a lot! This patch is now in.
--
Joel