Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* How to exam struct structname structname in C++
@ 2013-03-26 21:48 H.J. Lu
  2013-03-26 23:39 ` Pedro Alves
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2013-03-26 21:48 UTC (permalink / raw)
  To: GDB

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?

-- 
H.J.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to exam struct structname structname in C++
  2013-03-26 21:48 How to exam struct structname structname in C++ H.J. Lu
@ 2013-03-26 23:39 ` Pedro Alves
  0 siblings, 0 replies; 2+ messages in thread
From: Pedro Alves @ 2013-03-26 23:39 UTC (permalink / raw)
  To: H.J. Lu; +Cc: GDB

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-03-26 20:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-26 21:48 How to exam struct structname structname in C++ H.J. Lu
2013-03-26 23:39 ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox