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: "Eli Zaretskii" <eliz at elta dot co dot il>
- To: Joel Brobecker <brobecker at gnat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 02 Jan 2004 16:42:45 +0200
- Subject: Re: [RFC/dwarf-2] Add support for included files
- References: <20040102072500.GS826@gnat.com>
- Reply-to: Eli Zaretskii <eliz at elta dot co dot il>
> Date: Fri, 2 Jan 2004 08:25:00 +0100
> From: Joel Brobecker <brobecker@gnat.com>
>
> This capability can be reproduced in C as well, using #include.
Doesn't this happen with C++ programs (which have code fragments on
header files) as well? What about Yacc- and Lex-processed code?
> If we want to support the case above, I don't see any other way but to
> scan the line table as well.
How about if we only do that scan when the file name is not found in
the partial symbols, i.e. just before GDB is about to give up and
report the file as nonexistent? Assuming that the cases you have in
mind are rare, this would mean faster operation in most cases.