public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-dwz-multifile: macros in the .dwz file always refer to strings in the same file Date: Fri, 01 Jun 2012 19:46:00 -0000 [thread overview] Message-ID: <20120601194641.12340.qmail@sourceware.org> (raw) The branch, archer-tromey-dwz-multifile has been updated via 672cdd999e229e46a31520e9897af0303314cc1d (commit) from fda83c61dfd47e965129840c53ceca5420711a06 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 672cdd999e229e46a31520e9897af0303314cc1d Author: Tom Tromey <tromey@redhat.com> Date: Fri Jun 1 13:45:58 2012 -0600 macros in the .dwz file always refer to strings in the same file ----------------------------------------------------------------------- Summary of changes: gdb/dwarf2read.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) First 500 lines of diff: diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 8e3453e..66b0110 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -16062,7 +16062,7 @@ dwarf_decode_macro_bytes (bfd *abfd, gdb_byte *mac_ptr, gdb_byte *mac_end, struct macro_source_file *current_file, struct line_header *lh, char *comp_dir, struct dwarf2_section_info *section, - int section_is_gnu, + int section_is_gnu, int section_is_dwz, unsigned int offset_size, struct objfile *objfile, htab_t include_hash) @@ -16273,6 +16273,7 @@ dwarf_decode_macro_bytes (bfd *abfd, gdb_byte *mac_ptr, gdb_byte *mac_end, struct dwarf2_section_info *include_section = section; struct dwarf2_section_info alt_section; gdb_byte *include_mac_end = mac_end; + int is_dwz = section_is_dwz; *slot = mac_ptr; @@ -16286,13 +16287,14 @@ dwarf_decode_macro_bytes (bfd *abfd, gdb_byte *mac_ptr, gdb_byte *mac_end, include_bfd = dwz->macro.asection->owner; include_section = &dwz->macro; include_mac_end = dwz->macro.buffer + dwz->macro.size; + is_dwz = 1; } dwarf_decode_macro_bytes (include_bfd, include_section->buffer + offset, include_mac_end, current_file, lh, comp_dir, - section, section_is_gnu, + section, section_is_gnu, is_dwz, offset_size, objfile, include_hash); htab_remove_elt (include_hash, mac_ptr); @@ -16482,7 +16484,8 @@ dwarf_decode_macros (struct line_header *lh, unsigned int offset, slot = htab_find_slot (include_hash, mac_ptr, INSERT); *slot = mac_ptr; dwarf_decode_macro_bytes (abfd, mac_ptr, mac_end, - current_file, lh, comp_dir, section, section_is_gnu, + current_file, lh, comp_dir, section, + section_is_gnu, 0, offset_size, objfile, include_hash); do_cleanups (cleanup); } hooks/post-receive -- Repository for Project Archer.
reply other threads:[~2012-06-01 19:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20120601194641.12340.qmail@sourceware.org \ --to=tromey@sourceware.org \ --cc=archer-commits@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: linkBe 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; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).