Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: rearnsha@arm.com (Richard Earnshaw)
Cc: yao@codesourcery.com (Yao Qi), gdb-patches@sourceware.org
Subject: Re: [patch 2/2] Implement gdbarch hook user_register_name on ARM
Date: Thu, 23 Dec 2010 02:05:00 -0000	[thread overview]
Message-ID: <201012222205.oBMM5m4g025676@d06av02.portsmouth.uk.ibm.com> (raw)
In-Reply-To: <1293039320.11190.9.camel@e102346-lin.cambridge.arm.com> from "Richard Earnshaw" at Dec 22, 2010 05:35:20 PM

Richard Earnshaw wrote:
> Overall, I think it's just best if 'fp' is treated like any other
> standard register alias on ARM and therefore that it always refers to
> R11.  If we really want a register alias that refers to the *current*
> frame pointer register, then we need a new name that doesn't conflict
> with anything in the current or previous ABIs.  Maybe a
> slightly-long-winded name like 'frame'?

Well, the problem is that that "fp" itself has a fixed meaning in GDB.

This shows up most problematically in the MI interface.  When the MI
user interface application wants to select a frame in certain MI
commands, that frame has to identified via its "frame base" value.

However, there is no defined way to *query* that value.  Therefore,
my understanding is that the MI frontends typically query the value
of the standard "fp" register to retrieve this value.  If an architecture
back-end now goes and redefines what "fp" stands for, this will break
this MI frontend convention ...

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2010-12-22 22:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-15 10:22 [patch 1/2] New gdbarch hook user_register_name Yao Qi
2010-12-15 10:48 ` [patch 2/2] Implement gdbarch hook user_register_name on ARM Yao Qi
2010-12-21 19:07   ` Ulrich Weigand
2010-12-22 17:44     ` Yao Qi
2010-12-22 18:12       ` Mark Kettenis
2010-12-23  7:19         ` Yao Qi
2010-12-23  1:54       ` Ulrich Weigand
2010-12-23  4:10         ` Yao Qi
2010-12-23 18:37           ` Ulrich Weigand
2010-12-24  5:16             ` Yao Qi
2010-12-28 14:52               ` Ulrich Weigand
2010-12-22 17:54   ` Richard Earnshaw
2010-12-23  2:05     ` Ulrich Weigand [this message]
2010-12-23  3:37       ` Joel Brobecker
2010-12-23 12:08         ` Mark Kettenis

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=201012222205.oBMM5m4g025676@d06av02.portsmouth.uk.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=rearnsha@arm.com \
    --cc=yao@codesourcery.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