From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16933 invoked by alias); 25 Jul 2014 19:42:41 -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 16901 invoked by uid 48); 25 Jul 2014 19:42:40 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug symtab/17199] Recording two copies of plt minimal symbols is a pain to deal with Date: Fri, 25 Jul 2014 19:42: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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: dje at google 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: 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: 2014-q3/txt/msg00154.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17199 --- Comment #1 from dje at google dot com --- More data. This comment in symtab.h is incomplete. /* GDB uses mst_solib_trampoline for the start address of a shared library trampoline entry. Breakpoints for shared library functions are put there if the shared library is not yet loaded. After the shared library is loaded, lookup_minimal_symbol will prefer the minimal symbol from the shared library (usually a mst_text symbol) over the mst_solib_trampoline symbol, and the breakpoints will be moved to their true address in the shared library via breakpoint_re_set. */ This is incomplete because in actuality there are three symbols: 1) in main exec, foo@plt, mst_text 2) in main exec, foo, mst_solib_trampoline 3) in shared lib, foo, mst_text The comment leaves the reader guessing how #1 is discarded once the shared lib is loaded, one reason being it too is mst_text. Plus if you do "i b" before the shared library is loaded it is foo@plt that is displayed, not foo. -- You are receiving this mail because: You are on the CC list for the bug.