From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10137 invoked by alias); 26 Jan 2015 01:12:23 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 10024 invoked by uid 48); 26 Jan 2015 01:12:06 -0000 From: "xdje42 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/17866] incremental read missing header files Date: Mon, 26 Jan 2015 01:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: 7.8 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xdje42 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q1/txt/msg00127.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17866 Doug Evans changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xdje42 at gmail dot com --- Comment #1 from Doug Evans --- The reason this happens is that gdb avoids create psymtabs for headers not referenced in the line number program in dwarf. grep for included_p below. There's some discussion as to why in this thread: https://sourceware.org/ml/gdb-patches/2004-04/msg00267.html with the original message here: https://www.sourceware.org/ml/gdb-patches/2004-01/msg00015.html gdb has changed a bit since then, it may now be reasonable to create psymtabs for all headers, whether or not they are referenced by the line number program. static void dwarf_decode_lines (struct line_header *lh, const char *comp_dir, struct dwarf2_cu *cu, struct partial_symtab *pst, CORE_ADDR lowpc, int decode_mapping) { struct objfile *objfile = cu->objfile; const int decode_for_pst_p = (pst != NULL); if (decode_mapping) dwarf_decode_lines_1 (lh, cu, decode_for_pst_p, lowpc); if (decode_for_pst_p) { int file_index; /* Now that we're done scanning the Line Header Program, we can create the psymtab of each included file. */ for (file_index = 0; file_index < lh->num_file_names; file_index++) if (lh->file_names[file_index].included_p == 1) { const char *include_name = psymtab_include_file_name (lh, file_index, pst, comp_dir); if (include_name != NULL) dwarf2_create_include_psymtab (include_name, pst, objfile); } } -- You are receiving this mail because: You are on the CC list for the bug.