This is the mail archive of the gdb-prs@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tdep/1088: m6811 frame save/restore broken


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
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]