This is the mail archive of the gdb-patches@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]

Re: How to exam struct structname structname in C++


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


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