From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16245 invoked by alias); 7 Jun 2012 19:51:18 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 16215 invoked by uid 306); 7 Jun 2012 19:51:17 -0000 Date: Thu, 07 Jun 2012 19:51:00 -0000 Message-ID: <20120607195117.16200.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-dwz-multifile: make dw2_get_file_names_reader return NULL for partial units X-Git-Refname: refs/heads/archer-tromey-dwz-multifile X-Git-Reftype: branch X-Git-Oldrev: a4d8176f0794a51f6cd53aeccdd7f4a79d7f50b8 X-Git-Newrev: 8f2ff358c8b1bc73ec13dc7c5347314f376d254e X-SW-Source: 2012-q2/txt/msg00051.txt.bz2 List-Id: The branch, archer-tromey-dwz-multifile has been updated via 8f2ff358c8b1bc73ec13dc7c5347314f376d254e (commit) from a4d8176f0794a51f6cd53aeccdd7f4a79d7f50b8 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 8f2ff358c8b1bc73ec13dc7c5347314f376d254e Author: Tom Tromey Date: Thu Jun 7 13:49:38 2012 -0600 make dw2_get_file_names_reader return NULL for partial units ----------------------------------------------------------------------- Summary of changes: gdb/dwarf2read.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) First 500 lines of diff: diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index d8dfbd3..407fe9c 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2534,6 +2534,14 @@ dw2_get_file_names_reader (const struct die_reader_specs *reader, struct quick_file_names *qfn; unsigned int line_offset; + /* Our callers never want to match partial units -- instead they + will match the enclosing full CU. */ + if (comp_unit_die->tag == DW_TAG_partial_unit) + { + this_cu->v.quick->no_file_data = 1; + return; + } + lh = NULL; slot = NULL; line_offset = 0; hooks/post-receive -- Repository for Project Archer.