This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] "info registers" is misleading
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Cc: msnyder at redhat dot com, fnf at redhat dot com, gdb-patches at sources dot redhat dot com, Richard dot Earnshaw at arm dot com
- Date: Tue, 22 Jan 2002 13:47:33 +0000
- Subject: Re: [RFC] "info registers" is misleading
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> > Date: Mon, 21 Jan 2002 23:08:36 -0800
> > From: Michael Snyder <msnyder@redhat.com>
> >
> > This is an old old issue. The frame pointer register
> > is special. Info registers does not show the actual
> > value of the fp register -- it shows the virtual frame pointer
> > (the address of the function's stack frame). Usually
> > it's the same value -- unles you're in a frameless function
> > (ie. one that does not use the frame pointer register).
>
> Shouldn't we document this? I can write up the change, if you tell
> me that the above description is all that there is to it.
No, we should fix it. Lying about what is in a machine register is just
misleading.
R.