Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Andrew Cagney <ac131313@cygnus.com>
Cc: gdb@sources.redhat.com
Subject: Re: Regcache changes broke MIPS
Date: Sun, 09 Dec 2001 15:34:00 -0000	[thread overview]
Message-ID: <20011209183304.A15018@nevyn.them.org> (raw)
In-Reply-To: <3C13EB35.7040100@cygnus.com>

On Sun, Dec 09, 2001 at 02:52:37PM -0800, Andrew Cagney wrote:
> >Grumph.
> >
> >Because GDB isn't 100% multi-arch, it ends up having to use target macros 
> >from within _initialize_*().  Otherwize non- multi-arch code won't start up 
> >right.  When multi-arch is enabled, a dummy multi-arch vector is used.
> >
> >Anyway, I think there is something even more messed up here.  First, I'm 
> >not sure why that function was called from within an _initialize*() 
> >function.  Secondly, the logic just looks backwards.
> >
> >I'll do some pokeing.
> 
> 
> Hmm, doctor the patient is worse than we thought (and how ironic, this 
> one is my target).
> 
> Briefly, the MIPS still defines certain methods (REGISTER_RAW_SIZE() at 
> least) as macro's mapped onto functions instead of true multi-arch 
> methods.  That is why they are being called when they shouldn't.
> 
> I came up with a patch that fixed just REGISTER_RAW_SIZE() but that 
> didn't fix it - suspect I need to find more.

I think I follow.  Do you actually currently build the register cache
with dummy values (on a multiarch target) and then rebuild it after
gdbarch is initialized?

It seems like there should be a way to register a post-gdbarch,
non-multi-arch-target init function to avoid this.

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2001-12-09 23:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-08 20:41 Daniel Jacobowitz
2001-12-09 13:59 ` Andrew Cagney
2001-12-09 14:52   ` Andrew Cagney
2001-12-09 15:34     ` Daniel Jacobowitz [this message]
2001-12-09 19:09       ` 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=20011209183304.A15018@nevyn.them.org \
    --to=drow@mvista.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