This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug symtab/11717] common/.bss variables from shared libraries not displayed correctly


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]