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: Wed, 30 Jan 2013 09:08:26 +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
John Hughes <john at calva dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |john at calva dot com
Resolution|FIXED |
--- Comment #3 from John Hughes <john at calva dot com> 2013-01-30 09:08:26 UTC ---
(In reply to comment #2)
> I'm pretty sure it has...
I'm pretty sure it hasn't.
john@celtic:~$ cat a.c
#include <unistd.h>
int main()
{
printf("%p\n", &optind);
}
john@celtic:~$ gcc -g a.c
a.c: In function âmainâ:
a.c:5:2: warning: incompatible implicit declaration of built-in function
âprintfâ [enabled by default]
john@celtic:~$ gdb a.out
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/john/a.out...done.
(gdb) b main
Breakpoint 1 at 0x400550: file a.c, line 5.
(gdb) r
Starting program: /home/john/a.out
Breakpoint 1, main () at a.c:5
5 printf("%p\n", &optind);
(gdb) p &optind
$1 = (int *) 0x7ffff7dd7130
(gdb) c
Continuing.
0x600930
[Inferior 1 (process 25283) exited with code 011]
(gdb) q
john@celtic:~$ nm a.out | grep optind
0000000000600930 B optind@@GLIBC_2.2.5
--
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.