When gdb reads a separate debug info that contains two sections with the same name it miscalculates the section offset of the duplicate section. Any symbols defined in such a section get the wrong address. $ readelf -s /usr/lib/debug/usr/bin/emacs-23.1.debug | grep gdb_use_lsb 4085: 0000000000804b20 4 OBJECT GLOBAL DEFAULT 22 gdb_use_lsb $ gdb emacs GNU gdb (GDB) Fedora (7.0.1-34.fc12) Copyright (C) 2009 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-redhat-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /usr/bin/emacs...Reading symbols from /usr/lib/debug/usr/bin/emacs-23.1.debug...done. done. (gdb) i addr gdb_use_lsb Symbol "gdb_use_lsb" is static storage at address 0xa19ba0. (gdb)
Fix posted: http://sourceware.org/ml/gdb-patches/2010-03/msg00799.html
gdb-7.0.1-36.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/gdb-7.0.1-36.fc12
gdb-7.0.1-36.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.