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


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


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