Re: [RFA] patch for DW_AT_comp_dir/DW_AT_name vs .debug_line inconsistencies

Doug Evans
2008-01-05T22:49:54Z

[btw, this is my interpretation of Daniel's suggestion,
http://sourceware.org/ml/gdb/2008-01/msg00012.html,
all gaffes are mine of course]

On Jan 5, 2008 2:18 PM, Doug Evans <dje@google.com> wrote:
> Ref: http://sourceware.org/ml/gdb/2008-01/msg00007.html
>
> [Also ref: http://sourceware.org/ml/gdb-patches/2007-11/msg00314.html
> but I'm agnostic as to whether gdb should handle #line like this. The
> testcases in this patch use #line for convenience only.]
>
> How about this?
> Aleksandar, does this work for you? [you'll need to still account for
> IS_ABSOLUTE_PATH issues I suspect]
>
> This patch has dwarf_decode_lines prescan the .debug_line info for
> files that match DW_AT_name of the main source file, and passes that
> to start_subfile instead of what's recorded in .debug_line. This lets
> start_subfile get a match with the initial subfile created by
> start_symtab.
>
> I took an easy out in scanning for a match, I just pick the first. I
> can add the requisite code if folks think this is the way to go.
>
> No regressions in the testsuite (i686-linux).
>