Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Grace Sainsbury <graces@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [PATCH] more m68k multi-arch
Date: Fri, 28 Jun 2002 11:27:00 -0000	[thread overview]
Message-ID: <1020628182659.ZM26406@localhost.localdomain> (raw)
In-Reply-To: Kevin Buettner <kevinb@redhat.com> "Re: [PATCH] more m68k multi-arch" (Jun 28, 11:03am)

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

> On Jun 24,  1:10pm, Grace Sainsbury wrote:
> 
> > +#if !GDB_MULTI_ARCH
> >  #define STORE_STRUCT_RETURN(ADDR, SP) \
> >    { write_register (A1_REGNUM, (ADDR)); }
> >  
> > @@ -221,11 +228,13 @@
> >  	         (TYPE_LENGTH(TYPE) >= 4 ? 0 : 4 - TYPE_LENGTH(TYPE)),	\
> >  	  TYPE_LENGTH(TYPE))
> >  #endif
> > +#endif //multi-arch
> 
> I've noticed the addition of a number of ``#if !GDB_MULTI_ARCH''
> statements in your patch.  Presumably, these are temporary until
> you finish the job, right?  (I'm wondering if it's necessary to
> keep them around at all.)

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.

Kevin


  reply	other threads:[~2002-06-28 18:27 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 [this message]
2002-07-10 16:04     ` Andrew Cagney

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=1020628182659.ZM26406@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=graces@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