This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/8588] symbols present in multiple files are displayedwrongly
- From: "john at calva dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sat, 02 Feb 2013 11:27:47 +0000
- Subject: [Bug gdb/8588] symbols present in multiple files are displayedwrongly
- Auto-submitted: auto-generated
- References: <bug-8588-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=8588
--- Comment #6 from John Hughes <john at calva dot com> 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.