public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "david.simmonds at igmarkets dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/55649] libstdcxx gdb python pretty printer for tr1 not working
Date: Tue, 11 Dec 2012 16:19:00 -0000	[thread overview]
Message-ID: <bug-55649-4-EcFzeihqcd@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55649-4@http.gcc.gnu.org/bugzilla/>


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55649

--- Comment #1 from Dave Simmonds <david.simmonds at igmarkets dot com> 2012-12-11 16:19:09 UTC ---
(gdb) print g_epicmap->m_Map
$1 = Traceback (most recent call last):
  File "/usr/share/gdb/python/libstdcxx/v6/printers.py", line 536, in to_string
    return '%s with %d elements' % (self.typename,
self.val['_M_element_count'])
RuntimeError: There is no member or method named _M_element_count.
Traceback (most recent call last):
  File "/usr/share/gdb/python/libstdcxx/v6/printers.py", line 555, in children
    data = self.flatten (itertools.imap (self.format_one, Tr1HashtableIterator
(self.val)))
  File "/usr/share/gdb/python/libstdcxx/v6/printers.py", line 477, in __init__
    self.n_buckets = hash['_M_element_count']
RuntimeError: There is no member or method named _M_element_count.

(gdb) print /r g_epicmap->m_Map
$2 = {
  <std::tr1::hashtable<char const*, std::pair<char const* const,
boost::shared_ptr<CEpicRecord> >, std::allocator<std::pair<char const* const,
boost::shared_ptr<CEpicRecord> > >, Internal::extract1st<std::pair<char const*
const, boost::shared_ptr<CEpicRecord> > >, _ConstCharPtrCmp, _ConstCharHash,
Internal::mod_range_hashing, Internal::default_ranged_hash,
Internal::prime_rehash_policy, false, false, true>> = {
    <Internal::rehash_base<Internal::prime_rehash_policy,
std::tr1::hashtable<char const*, std::pair<char const* const,
boost::shared_ptr<CEpicRecord> >, std::allocator<std::pair<char const* const,
boost::shared_ptr<CEpicRecord> > >, Internal::extract1st<std::pair<char const*
const, boost::shared_ptr<CEpicRecord> > >, _ConstCharPtrCmp, _ConstCharHash,
Internal::mod_range_hashing, Internal::default_ranged_hash,
Internal::prime_rehash_policy, false, false, true> >> = {<No data fields>},
    <Internal::hash_code_base<char const*, std::pair<char const* const,
boost::shared_ptr<CEpicRecord> >, Internal::extract1st<std::pair<char const*
const, boost::shared_ptr<CEpicRecord> > >, _ConstCharPtrCmp, _ConstCharHash,
Internal::mod_range_hashing, Internal::default_ranged_hash, false>> = {
      m_extract = {<No data fields>},
      m_eq = {<No data fields>},
      m_h1 = {<No data fields>},
      m_h2 = {<No data fields>}
    },
    <Internal::map_base<char const*, std::pair<char const* const,
boost::shared_ptr<CEpicRecord> >, Internal::extract1st<std::pair<char const*
const, boost::shared_ptr<CEpicRecord> > >, true, std::tr1::hashtable<char
const*, std::pair<char const* const, boost::shared_ptr<CEpicRecord> >,
std::allocator<std::pair<char const* const, boost::shared_ptr<CEpicRecord> > >,
Internal::extract1st<std::pair<char const* const,
boost::shared_ptr<CEpicRecord> > >, _ConstCharPtrCmp, _ConstCharHash,
Internal::mod_range_hashing, Internal::default_ranged_hash,
Internal::prime_rehash_policy, false, false, true> >> = {<No data fields>},
    members of std::tr1::hashtable<char const*, std::pair<char const* const,
boost::shared_ptr<CEpicRecord> >, std::allocator<std::pair<char const* const,
boost::shared_ptr<CEpicRecord> > >, Internal::extract1st<std::pair<char const*
const, boost::shared_ptr<CEpicRecord> > >, _ConstCharPtrCmp, _ConstCharHash,
Internal::mod_range_hashing, Internal::default_ranged_hash,
Internal::prime_rehash_policy, false, false, true>:
    m_node_allocator = {
      <__gnu_cxx::new_allocator<Internal::hash_node<std::pair<char const*
const, boost::shared_ptr<CEpicRecord> >, false> >> = {<No data fields>}, <No
data fields>},
    m_buckets = 0x2aaaaaaac010,
    m_bucket_count = 92203,
    m_element_count = 69182,
    m_rehash_policy = {
      m_max_load_factor = 1,
      m_growth_factor = 2,
      m_next_resize = 92203
    }
  }, <No data fields>}


  reply	other threads:[~2012-12-11 16:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-11 16:17 [Bug libstdc++/55649] New: " david.simmonds at igmarkets dot com
2012-12-11 16:19 ` david.simmonds at igmarkets dot com [this message]
2012-12-11 16:34 ` [Bug libstdc++/55649] " redi at gcc dot gnu.org
2012-12-11 16:49 ` david.simmonds at igmarkets dot com
2012-12-11 16:56 ` david.simmonds at igmarkets dot com
2012-12-11 17:10 ` redi at gcc dot gnu.org

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=bug-55649-4-EcFzeihqcd@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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).