Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pierre Muller <muller@cerbere.u-strasbg.fr>
To: Richard.Earnshaw@arm.com, Andrew Cagney <ac131313@cygnus.com>
Cc: gdb@sources.redhat.com
Subject: Re: multi-arch debug doesn't dump definitions as requested
Date: Fri, 08 Feb 2002 02:41:00 -0000	[thread overview]
Message-ID: <4.2.0.58.20020208113517.00acf888@ics.u-strasbg.fr> (raw)
In-Reply-To: <200202081021.KAA01070@cam-mail2.cambridge.arm.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


      reply	other threads:[~2002-02-08 10:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-06  9:34 Richard Earnshaw
2002-02-07 18:38 ` Andrew Cagney
2002-02-08  2:22   ` Richard Earnshaw
2002-02-08  2:41     ` Pierre Muller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4.2.0.58.20020208113517.00acf888@ics.u-strasbg.fr \
    --to=muller@cerbere.u-strasbg.fr \
    --cc=Richard.Earnshaw@arm.com \
    --cc=ac131313@cygnus.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox