This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: multi-arch debug doesn't dump definitions as requested
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: Richard dot Earnshaw at arm dot com, gdb at sources dot redhat dot com
- Date: Fri, 08 Feb 2002 10:21:41 +0000
- Subject: Re: multi-arch debug doesn't dump definitions as requested
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
>
> 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. ...