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: Pierre Muller <muller at cerbere dot u-strasbg dot fr>
- To: Richard dot Earnshaw at arm dot com, Andrew Cagney <ac131313 at cygnus dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 08 Feb 2002 11:41:18 +0100
- Subject: Re: multi-arch debug doesn't dump definitions as requested
- References: <Your message of "Thu, 07 Feb 2002 21:38:02 EST." <3C633A0A.1040906@cygnus.com>
At 11:21 08/02/2002 , Richard Earnshaw a écrit:
> >
> > 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. ...
I made a simple test on a recent cygwin native gdb built from CVS tree.
>(gdb) set archdebug 1
(gdb) set archdebug 1
Warning: command 'set archdebug' is deprecated.
Use 'set debug arch'.
Maybe this should also be changed on html, unless there are still some hidden differences...
afterr setting debug arch to 1
(gdb) file ./gdb
gdbarch_update: info.bfd_arch_info i386
gdbarch_update: info.byte_order 1 (little)
gdbarch_update: info.abfd 0xa035030
gdbarch_update: info.tdep_info 0x0
gdbarch_update: Architecture 0x0a0281f0 (i386) unchanged
Reading symbols from ./gdb...done.
Is this all that is defined in i386-tdep.c ?
I see more set_gdbarch_****
calls in i386-tdep.c source, but they are not reflected here....
If I try to set debug arch to higher values I get lots of
output, but not much understandable...
Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07 Fax : (33)-3-88-41-40-99