This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: start_subfile oddities
On Nov 14, 2007 9:35 AM, Douglas Evans <dje@google.com> wrote:
> [...]
> 1) It seems that, as a matter of cleanliness, if file is an absolute
> path, or dirname+file is an absolute path, then comp_dir should not be
> passed as the dirname argument to start_subfile in dwarf2read.c.
> [...]
> But the comment for start_subfile says this:
>
> /* Start recording information about source code that came from an
> included (or otherwise merged-in) source file with a different
> name. NAME is the name of the file (cannot be NULL), **** DIRNAME
> is
> the directory in which it resides (or NULL if not known). **** */
>
> [**** emphasis added]
Heh. I found this in symtab.h:
struct symtab
{
[...]
/* Directory in which it was compiled, or NULL if we don't know. */
char *dirname;
};
Which comment is correct?