This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/11717] common/.bss variables from shared libraries not displayed correctly
- From: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 22 Aug 2010 07:41:38 -0000
- Subject: [Bug symtab/11717] common/.bss variables from shared libraries not displayed correctly
- References: <20100618132513.11717.lance604@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jan dot kratochvil at redhat dot com 2010-08-22 07:41 -------
#include <iostream>
int main()
{
return std::cin.eof();
}
(gdb) p std::cin
$1 = {<error reading variable>
(gdb) p &std::cin
$2 = (std::istream *) 0x7ffff7dc7b60
Symbol table '.dynsym' contains 9 entries:
Num: Value Size Type Bind Vis Ndx Name
7: 0000000000600b60 280 OBJECT GLOBAL DEFAULT 25 _ZSt3cin@GLIBCXX_3.4 (2)
because of:
Relocation section '.rela.dyn' at offset 0x4a8 contains 2 entries:
Offset Info Type Symbol's Value
Symbol's Name + Addend
0000000000600b60 0000000700000005 R_X86_64_COPY 0000000000600b60
_ZSt3cin + 0
Unaware if it is the only problem of:
(gdb) p std::cin.eof()
Cannot access memory at address 0xffffffffffffffe8
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11717
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.