From: Aleksandar Ristovski <ARistovski@qnx.com>
To: Doug Evans <dje@google.com>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: [RFA] patch for DW_AT_comp_dir/DW_AT_name vs .debug_line inco nsistencies
Date: Tue, 08 Apr 2008 16:37:00 -0000 [thread overview]
Message-ID: <47FB6E21.8000002@qnx.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 779 bytes --]
Doug Evans wrote:
> I have an occasion to revisit this:
> http://sourceware.org/ml/gdb-patches/2007-11/msg00314.html
>
> Or in a different form:
> http://sourceware.org/ml/gdb-patches/2008-01/msg00103.html
>
> When we last left our story, watching for a single path mismatch of
> the main source file only seemed ok. That's what this patch does.
> It's just a minor revision of
> http://sourceware.org/ml/gdb-patches/2008-01/msg00103.html
>
>
Hello Doug,
Without going through your revisited patch:
I have been using a patch based on your initial patch and it seems to work
fine,
with one exception, there is one problem in your patch - fixed with the diff
attached. I think the code comment is self-explanatory.
Thanks,
---
Aleksandar Ristovski
QNX Software Systems
[-- Attachment #2: dwarf2read.doug.diff --]
[-- Type: text/plain, Size: 867 bytes --]
Index: gdb/dwarf2read.c
===================================================================
--- gdb/dwarf2read.c (revision 99)
+++ gdb/dwarf2read.c (revision 115)
@@ -6988,7 +6988,16 @@ dwarf_decode_lines (struct line_header *
read_unsigned_leb128 (abfd, line_ptr, &bytes_read);
line_ptr += bytes_read;
add_file_name (lh, cur_file, dir_index, mod_time, length);
- }
+ if (!decode_for_pst_p)
+ {
+ /* Re-create subfile_names. We created it initially
+ assuming lh->file_names is final, but now that
+ it changed, we need to rebuild. */
+ subfile_names = dwarf_build_subfile_names (
+ lh, cu_file_name, comp_dir);
+ make_cleanup (dwarf_free_subfile_names, subfile_names);
+ }
+ }
break;
default:
complaint (&symfile_complaints,
next reply other threads:[~2008-04-08 13:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 16:37 Aleksandar Ristovski [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-04-09 14:55 Aleksandar Ristovski
2008-04-09 20:52 ` Doug Evans
2008-01-08 21:51 Aleksandar Ristovski
2008-01-08 21:57 ` Daniel Jacobowitz
2008-01-08 21:26 Aleksandar Ristovski
2008-01-08 21:24 Aleksandar Ristovski
2008-01-08 21:32 ` Daniel Jacobowitz
2008-01-08 20:28 Aleksandar Ristovski
2008-01-08 20:33 ` Daniel Jacobowitz
2008-01-08 16:34 Aleksandar Ristovski
2008-01-08 16:46 ` Daniel Jacobowitz
2008-01-08 16:10 Aleksandar Ristovski
2008-01-08 16:19 ` Daniel Jacobowitz
2008-01-08 17:33 ` Doug Evans
2008-01-06 6:44 Aleksandar Ristovski
2008-01-06 18:44 ` Doug Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47FB6E21.8000002@qnx.com \
--to=aristovski@qnx.com \
--cc=dje@google.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox