This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: tdep/1088: m6811 frame save/restore broken
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 26 Feb 2003 06:48:01 -0000
- Subject: Re: tdep/1088: m6811 frame save/restore broken
- Reply-to: Andrew Cagney <ac131313 at redhat dot com>
The following reply was made to PR tdep/1088; it has been noted by GNATS.
From: Andrew Cagney <ac131313 at redhat dot com>
To: Stephane dot Carrez at nerim dot fr
Cc: gdb-gnats at sources dot redhat dot com
Subject: Re: tdep/1088: m6811 frame save/restore broken
Date: Wed, 26 Feb 2003 01:40:38 -0500
> Description:
>
> The frame save/restore is now completely broken for HC11/HC12.
> When doing a call from gdb, the registers are no longer
> restored correctly.
Can you be more specific? I see that you've added the necessary groups
code vis:
/* We must save the real hard register as well as gcc
soft registers including the frame pointer. */
if (group == save_reggroup || group == restore_reggroup)
{
return (regnum <= gdbarch_num_regs (gdbarch)
|| ((regnum == SOFT_FP_REGNUM
|| regnum == SOFT_TMP_REGNUM
|| regnum == SOFT_ZS_REGNUM
|| regnum == SOFT_XY_REGNUM)
&& m68hc11_register_name (regnum)));
}
The `maint print {raw-,cooked-,}registers' command should help.
Andrew