multi-arch debug doesn't dump definitions as requested
Andrew Cagney
ac131313@cygnus.com
Thu Feb 7 18:38:00 GMT 2002
> According to
> http://sources.redhat.com/gdb/papers/multi-arch/howto.html
>
> 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. At this stage must are still
> being taken from hardwired definitions in your
> tm-XXX.h file. Failing that, an internal error message
> reporting an uninitialised architecture vector member will be
> reported.
>
> Except that that doesn't happen. All I get is
>
> (gdb) set archdebug 1
> Warning: command 'set archdebug' is deprecated.
> Use 'set debug arch'.
>
> (gdb) file gdb
> gdbarch_update: info.bfd_arch_info arm
> gdbarch_update: info.byte_order 1 (little)
> gdbarch_update: info.abfd 0x1d2e00
> gdbarch_update: info.tdep_info 0x0
> gdbarch_update: Architecture 0x001d3000 (arm) unchanged
> Reading symbols from gdb...done.
>
> Note, "set debug arch 1" doesn't do anything different either.
>
> How about a "maint" (or maint info) command?
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
More information about the Gdb
mailing list