From: Elena Zannoni <ezannoni@redhat.com>
To: Andrew Cagney <ac131313@ges.redhat.com>
Cc: Richard.Earnshaw@arm.com, Elena Zannoni <ezannoni@redhat.com>,
Kevin Buettner <kevinb@redhat.com>,
gdb-patches@sources.redhat.com
Subject: Re: [patch/wip] Save/restore cooked registers
Date: Thu, 29 Aug 2002 08:36:00 -0000 [thread overview]
Message-ID: <15726.15919.933494.30@localhost.redhat.com> (raw)
In-Reply-To: <3D6CF48C.3080908@ges.redhat.com>
Andrew Cagney writes:
>
> > I really think we need to break this implicit link between the raw regs
> > and part of the cooked regs, it just causes no-end of confusion. It's
> > fine if we want to say that some cooked regs are mapped 1:1 onto part of
> > the raw regcache, but that should/must be a back-end convenience, and not
> > part of gdb's fundamental design (that is asking for the r0 cooked view
> > may just happen to fetch the raw r0 register that is at offset zero in the
> > regcache, but nothing in GDB-core should assume this).
>
> BTW, it turns out that nothing in core GDB is assuming this (ignoring
> the CONVERTABLE mess). Elena's e500 port maped everything onto a
> totally cooked register and nothing noticed. Core gdb just deals with
> cooked registers (or their ulgh offset).
>
I think there may still be a couple of places where we are using some
wrong assumptions about the register numbers. At least in target ppc
code. Some harcoded 0 instead of tdep->ppc_gp0_regnum and similar
things. Hopefully those will be flushed out overtime.
Elena
prev parent reply other threads:[~2002-08-29 15:32 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-25 12:23 Andrew Cagney
2002-08-26 9:05 ` Kevin Buettner
2002-08-26 9:31 ` Andrew Cagney
2002-08-26 10:26 ` Elena Zannoni
2002-08-26 11:21 ` Kevin Buettner
2002-08-26 11:25 ` Andrew Cagney
2002-08-26 13:52 ` Kevin Buettner
2002-08-26 11:29 ` Elena Zannoni
2002-08-26 12:04 ` Kevin Buettner
2002-08-28 7:42 ` Richard Earnshaw
2002-08-28 9:58 ` Andrew Cagney
2002-08-29 8:36 ` Elena Zannoni [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=15726.15919.933494.30@localhost.redhat.com \
--to=ezannoni@redhat.com \
--cc=Richard.Earnshaw@arm.com \
--cc=ac131313@ges.redhat.com \
--cc=gdb-patches@sources.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