This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: REGISTER_BYTE() and pseudos
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: Andrew Cagney <ac131313 at cygnus dot com>, Richard dot Earnshaw at arm dot com, gdb at sources dot redhat dot com
- Date: Wed, 15 May 2002 18:45:33 +0100
- Subject: Re: REGISTER_BYTE() and pseudos
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
> Yeah, I was going to chime in, but I am behind on this thread.
> Richard, look at the sh-tdep.c file. I checked in the sh5 work. It
> still needs another round of cleaning but ti should pretty much all be
> there.
OK, I'll have another look.
The bit I'm worried about though is if we call something like
generic_get_saved_register for a pseudo and we hit a call_dummy frame.
The code in there goes:
if (PC_IN_CALL_DUMMY (frame->pc, frame->frame, frame->frame))
{
if (lval) /* found it in a CALL_DUMMY frame */
*lval = not_lval;
if (raw_buffer)
memcpy (raw_buffer,
generic_find_dummy_frame (frame->pc, frame->frame) +
REGISTER_BYTE (regnum),
REGISTER_RAW_SIZE (regnum));
return;
Which will try to look up the pseudo in the buffer even if it isn't there.