From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15653 invoked by alias); 2 Feb 2013 11:27:50 -0000 Received: (qmail 15625 invoked by uid 55); 2 Feb 2013 11:27:49 -0000 From: "john at calva dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/8588] symbols present in multiple files are displayed wrongly Date: Sat, 02 Feb 2013 11:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: john at calva dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2013-q1/txt/msg00167.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=8588 --- Comment #6 from John Hughes 2013-02-02 11:27:47 UTC --- On 02/01/2013 10:56 PM, naesten at gmail dot com wrote: > This leaves me wondering: Is this really architecture-dependent, or is it just > due to chance (different addresses, hash collisions, etc.) that it works for me > and not for you? I guess you're on x86? My machines are amd64 > > My questions for you are: > > 1. What version of libc6-dev do you have installed? ii gcc 4:4.7.2-1 amd64 GNU C compiler ii gdb 7.4.1-3 amd64 The GNU Debugger ii libc6-dev:amd6 2.13-38 amd64 Embedded GNU C Library: Developme > > 2. What do you get for "info variables optind"? > Not at all the same as you: (gdb) info variables optind All variables matching regular expression "optind": Non-debugging symbols: 0x0000000000600930 optind@@GLIBC_2.2.5 Interesting - "non-debugging symbols"? Maybe I should install libc6-dbg? Well, with libc6-dbg I get different output from info variables: All variables matching regular expression "optind": File getopt.c: int optind; Non-debugging symbols: 0x0000000000600930 optind@@GLIBC_2.2.5 But "p" still doesn't show the version I want: (gdb) p &optind $1 = (int *) 0x7ffff7dd7130 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.