Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@ges.redhat.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: Grace Sainsbury <graces@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] more m68k multi-arch
Date: Wed, 10 Jul 2002 16:04:00 -0000	[thread overview]
Message-ID: <3D2CB9BA.1040304@ges.redhat.com> (raw)
In-Reply-To: <1020628182659.ZM26406@localhost.localdomain>

> On Jun 28, 11:03am, Kevin Buettner wrote:

Kevin,

See:
http://sources.redhat.com/gdb/current/onlinedocs/gdbint_9.html#SEC82
>  9.11.4 Prepare for multi-arch level to one
> 
> Temporally set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL and then build and start GDB (the change should not be committed). GDB may not build, and once built, it may die with an internal error listing the architecture methods that must be provided.
> 
> Fix any build problems (patch(es)).
> 
> Convert all the architecture methods listed, which are only macros, into functions (patch(es)).
> 
> Update arch_gdbarch_init to set all the missing architecture methods and wrap the corresponding macros in #if !GDB_MULTI_ARCH (patch(es)). 

The presence of #define GDB_MULTI_ARCH 0 indicates that this is being 
tested.

enjoy,
Andrew


> I've been looking at this some more...
> 
> I've noticed the following define near the top of tm-m68k.h:
> 
>     #define GDB_MULTI_ARCH 0
> 
> Clearly, with this definition in place, you do need to keep the old
> definitions around, because those are the ones that will be used!
> 
> It seems to me that your testing will be more productive if you do
> one of the following:
> 
>     1) define GDB_MULTI_ARCH to be GDB_MULTI_ARCH_PARTIAL (1) instead of 0.
> 
> or
> 
>     2) change the macro definitions being replaced to instead refer to
>        the newly defined functions in m68k-tdep.c.
> 
> As it stands now, you are only testing that the functions that you've
> added to the tdep.c file build (i.e. compile), but GDB won't actually
> be using them.  This means that if you make a typo, it won't be
> noticed until some later point when GDB_MULTI_ARCH is changed from 0
> to some other value.




      reply	other threads:[~2002-07-10 22:48 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-24 10:10 Grace Sainsbury
2002-06-28 11:04 ` Kevin Buettner
2002-06-28 11:27   ` Kevin Buettner
2002-07-10 16:04     ` Andrew Cagney [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=3D2CB9BA.1040304@ges.redhat.com \
    --to=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=graces@redhat.com \
    --cc=kevinb@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