Bug#536024: closed by Samuel Bronson (Re: Bug#536024: gdb gets wrong address for glibc optind variable)

2013-01-30 Thread John Hughes
On 30/01/13 02:33, Debian Bug Tracking System wrote: This is an automatic notification regarding your Bug report which was filed against the gdb package: #536024: gdb gets wrong address for glibc optind variable It has been closed by Samuel Bronson . As far as I can see this bug is *not* fixe

Bug#536024: gdb gets wrong address for glibc optind variable

2009-07-07 Thread Daniel Jacobowitz
On Tue, Jul 07, 2009 at 04:17:21PM +0200, John Hughes wrote: > I'm a bit confused - the program itself prints &optind as 0x600a00, > which is what the "non-debugging symbol" optind@@GLIBC_2.2.5 is > shown as. > > Which copy is the good one? What happens is that the variable is defined in libc.so

Bug#536024: gdb gets wrong address for glibc optind variable

2009-07-07 Thread John Hughes
Daniel Jacobowitz wrote: On Tue, Jul 07, 2009 at 11:38:24AM +0200, John Hughes wrote: I don't get the static version with gcc 4.3 and gdb 6.8 on lenny (x86-64): (gdb) info var optind All variables matching regular expression "optind": File /usr/include/getopt.h: int optind; Non-debugging s

Bug#536024: gdb gets wrong address for glibc optind variable

2009-07-07 Thread Daniel Jacobowitz
On Tue, Jul 07, 2009 at 11:38:24AM +0200, John Hughes wrote: > I don't get the static version with gcc 4.3 and gdb 6.8 on lenny (x86-64): > > (gdb) info var optind > All variables matching regular expression "optind": > > File /usr/include/getopt.h: > int optind; > > Non-debugging symbols: > 0x0

Bug#536024: gdb gets wrong address for glibc optind variable

2009-07-07 Thread John Hughes
Daniel Jacobowitz wrote: On Mon, Jul 06, 2009 at 10:59:56PM +0200, John Hughes wrote: debugging a program that uses the glibc getopt function shows the wrong address and value for the "optind" variable. (gdb) info var optind All variables matching regular expression "optind": File /us

Bug#536024: gdb gets wrong address for glibc optind variable

2009-07-06 Thread Daniel Jacobowitz
On Mon, Jul 06, 2009 at 10:59:56PM +0200, John Hughes wrote: > debugging a program that uses the glibc getopt function shows the wrong > address and value for the "optind" variable. (gdb) info var optind All variables matching regular expression "optind": File /usr/include/getopt.h: static int op

Bug#536024: gdb gets wrong address for glibc optind variable

2009-07-06 Thread John Hughes
Package: gdb Version: 6.8-3 Severity: important debugging a program that uses the glibc getopt function shows the wrong address and value for the "optind" variable. For example: Script started on Mon 06 Jul 2009 22:46:37 CEST j...@cedric:~$ cat optind-bug.c #include #include #define LEN(arr)