This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Handling corner case in building symbol table when "debug_line" includes compilation directory
- From: Daniel Jacobowitz <drow at false dot org>
- To: Maxim Grigoriev <maxim at tensilica dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 14 Mar 2007 22:27:35 -0400
- Subject: Re: Handling corner case in building symbol table when "debug_line" includes compilation directory
- References: <45F8A771.2060008@hq.tensilica.com>
On Wed, Mar 14, 2007 at 06:54:57PM -0700, Maxim Grigoriev wrote:
> Hello All,
> Tensilica compiler seems to provide a unique approach in building DWARF
> line tables. It confuses GDB algorithms being used to build symbol tables.
> First in DW_TAG_compile_unit entry
> DW_AT_name is a source file name as it was used in a command line;
> DW_AT_comp_dir is a full path name to a compilation directory;
> Then in the statement program prologue, the directory table includes at
> least one entry, which is again the compilation directory. And, there is
> a corresponding file table entry referencing to this directory.
> Assuming that this combination of the names of the directories and files
> does not contradict DWARF standard, I think GDB has to handle this situation.
> I suggest the following patch to fix this problem:
First of all, your mailer ate whitespace in the patch again - very
hard to read.
Unfortunately, I do not understand your description. Could you show
me an example?
--
Daniel Jacobowitz
CodeSourcery