public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "jan dot kratochvil at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/11717] common/.bss variables from shared libraries not  displayed correctly
Date: Sun, 22 Aug 2010 07:41:00 -0000	[thread overview]
Message-ID: <20100822074138.20855.qmail@sourceware.org> (raw)
In-Reply-To: <20100618132513.11717.lance604@gmail.com>


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


  parent reply	other threads:[~2010-08-22  7:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-18 13:25 [Bug symtab/11717] New: " lance604 at gmail dot com
2010-07-12 20:01 ` [Bug symtab/11717] " nbowler at draconx dot ca
2010-07-21  8:43 ` jan dot kratochvil at redhat dot com
2010-07-21  8:55 ` jan dot kratochvil at redhat dot com
2010-08-22  7:41 ` jan dot kratochvil at redhat dot com [this message]
     [not found] <bug-11717-4717@http.sourceware.org/bugzilla/>
2012-01-31 18:05 ` eager at eagercon dot com
2012-04-03  8:30 ` jakub at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100822074138.20855.qmail@sourceware.org \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).