This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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).

Attachment: gdb-080105-dwarf-decode-lines-1.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]