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:
> 0x0000000000600a00  optind@@GLIBC_2.2.5

Maybe this means you don't have libc6-dbg installed?  I would have
expected GDB to work in this case, preferring the copy in the
executable.  Go figure.

> >Unfortunately, this bug is quite hard to fix.  It applies to any
> >variable defined in a shared library and used in the executable.
> 
> Eew.  How horrid.

Here's another reference (the problem has been around for a while):
  http://sourceware.org/ml/gdb/2003-12/msg00165.html

-- 
Daniel Jacobowitz
CodeSourcery



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to