This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
gdb/1483: symbols present in multiple files are displayed wrongly
- From: ibr at ata dot cs dot hun dot edu dot tr
- To: gdb-gnats at sources dot redhat dot com
- Date: 12 Dec 2003 15:02:51 -0000
- Subject: gdb/1483: symbols present in multiple files are displayed wrongly
- Reply-to: ibr at ata dot cs dot hun dot edu dot tr
>Number: 1483
>Category: gdb
>Synopsis: symbols present in multiple files are displayed wrongly
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Dec 12 15:08:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: ibr@ata.cs.hun.edu.tr
>Release: 6.0
>Organization:
>Environment:
>Description:
gdb finds the wrong copy of a symbol.
http://sources.redhat.com/ml/gdb/2003-12/msg00160.html
>How-To-Repeat:
given the following program:
#include <unistd.h>
int main()
{
printf("%p\n", &optind);
}
I do:
gcc -g a.c
./a.out
nm a.out |grep optind
I see, respectively:
0x80495ac
080495ac B optind@@GLIBC_2.0
After that I do:
gdb a.out
b main
r
p &optind
I see:
$1 = (int *) 0x4014814c,
whereas I expect it to be 080495ac.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: