multi-arch debug doesn't dump definitions as requested

Richard Earnshaw rearnsha@arm.com
Fri Feb 8 02:22:00 GMT 2002


> 
> 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. ...




More information about the Gdb mailing list