Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: "H.J. Lu" <hjl.tools@gmail.com>
Cc: GDB <gdb-patches@sourceware.org>
Subject: Re: How to exam struct structname structname in C++
Date: Tue, 26 Mar 2013 23:39:00 -0000	[thread overview]
Message-ID: <5152004B.6000707@redhat.com> (raw)
In-Reply-To: <CAMe9rOqN+rH+ptWngH7WLUvate5upzsyhcO6rmwh3R6221BuFQ@mail.gmail.com>

On 03/26/2013 07:59 PM, H.J. Lu wrote:
> GCC is compiled with C++ now and I can't exam recog_data:
> 
> recog.h:struct recog_data
> recog.h:extern struct recog_data recog_data;
> 
> under GDB due to:
> 
> http://sourceware.org/bugzilla/show_bug.cgi?id=7737
> 
> Is there a work around for this without touching GCC
> source?

If you're looking for a quick one-off workaround, I'd do:

 $ nm -A cc1 | grep recog_data

 (gdb) p *(struct recog_data *) (0xaddress)

-- 
Pedro Alves


      reply	other threads:[~2013-03-26 20:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-26 21:48 H.J. Lu
2013-03-26 23:39 ` Pedro Alves [this message]

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=5152004B.6000707@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=hjl.tools@gmail.com \
    /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