This is the mail archive of the gdb@sources.redhat.com 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: multi-arch debug doesn't dump definitions as requested



> 
> Try:
> 
> (gdb) maint print architecture [ <savefile> ]
> 
> and look at sizeof.exp.
> 
> The lack of output comes, at least in part, because it isn't possible to 
> print the macros/values safely.
> 
> Andrew

Thanks.  Shouldn't http://sources.redhat.com/gdb/papers/multi-arch/howto.ht
ml be updated to show this.  At present it says:

Add: 

#ifndef GDB_MULTI_ARCH
#define GDB_MULTI_ARCH 1
#endif

to the top of your tm-XXX.h file. Rebuild and then run GDB vis: 

gdb/gdb
(gdb)
(gdb) set archdebug 1
(gdb) file x-y-z
....

If all goes well, gdb will report the current value of all the 
architecture dependent macro's. ...



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