* mn10300-tdep.c (mn10300_generic_register_names): New variable.
authorJeff Law <law@redhat.com>
Thu, 9 Jul 1998 22:23:18 +0000 (22:23 +0000)
committerJeff Law <law@redhat.com>
Thu, 9 Jul 1998 22:23:18 +0000 (22:23 +0000)
        (set_machine_hook): New function.  Copy the appropriate register
        names into reg_names.
        (_initialize_mn10300_tdep): Set up to call set_machine_hook.
        * tm-mn10300 (NUM_REGS): Bump to 32.
        (REGISTER_NAMES): Updated accordingly.

start-sanitize-am33
        * mn10300-tdep.c (am33_register_names): New variable.
        (mn10300_analyze_prologue): Handle regs saved by am33 prologues.
        * tm-mn10300.h (E0_REGNUM): Define.
end-sanitize-am33

Initial am33 support.

gdb/.Sanitize
gdb/ChangeLog
gdb/config/mn10300/.Sanitize
gdb/config/mn10300/tm-mn10300.h

index 9b0c0af515ce1f877f1b18358c7ae5b3da66d706..835e2f47ae1cf86b8674d487f2e72b52ff98b60c 100644 (file)
@@ -757,6 +757,33 @@ else
        done
 fi
 
+if ( echo $* | grep keep\-am33 > /dev/null ) ; then
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping am33 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"am33\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
 if ( echo $* | grep keep\-d30v > /dev/null ) ; then
        for i in * ; do
                if test ! -d $i && (grep sanitize-d30v $i > /dev/null) ; then
index e46ba2fdc77df07833e7a5b090b2eb77324b870f..4ae49736615a67225c0a4f9bcbb09d8654204ec6 100644 (file)
@@ -1,3 +1,18 @@
+Thu Jul  9 16:16:47 1998  Jeffrey A Law  (law@cygnus.com)
+
+       * mn10300-tdep.c (mn10300_generic_register_names): New variable.
+       (set_machine_hook): New function.  Copy the appropriate register
+       names into reg_names.
+       (_initialize_mn10300_tdep): Set up to call set_machine_hook.
+       * tm-mn10300 (NUM_REGS): Bump to 32.
+       (REGISTER_NAMES): Updated accordingly.
+
+start-sanitize-am33
+       * mn10300-tdep.c (am33_register_names): New variable.
+       (mn10300_analyze_prologue): Handle regs saved by am33 prologues.
+       * tm-mn10300.h (E0_REGNUM): Define.
+end-sanitize-am33
+
 Tue Jul 7 7:40:13 1998  Ron Unrau  <runrau@cygnus.com>
 
        * symtab.c (find_pc_sect_psymbol): allow case where textlow is 0
index e1bb8e9111c90c51e8d687d92d0c093e85eae38b..7249e27aee1b613fc13dbfccabae6d647c655118 100644 (file)
@@ -30,4 +30,31 @@ Things-to-lose:
 
 Do-last:
 
+if ( echo $* | grep keep\-am33 > /dev/null ) ; then
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping am33 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in * ; do
+               if test ! -d $i && (grep sanitize-am33 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"am33\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-am33/,/end-\sanitize\-am33/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
 # End of file.
index 72dcd52cb9b9c21afcd10a4c72bd50d23854617c..30a195cce54deb5aca9c24f3f3a64cbad695227e 100644 (file)
@@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 /* All registers are 32bits (phew!).  */
 #define REGISTER_SIZE 4
 #define MAX_REGISTER_RAW_SIZE 4
-#define NUM_REGS 14
+#define NUM_REGS 32
 
 #define REGISTER_VIRTUAL_TYPE(REG) builtin_type_int
 
@@ -39,7 +39,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #define REGISTER_NAMES \
 { "d0", "d1", "d2", "d3", "a0", "a1", "a2", "a3", \
-  "sp", "pc", "mdr", "psw", "lir", "lar" }
+  "sp", "pc", "mdr", "psw", "lir", "lar", "", "", \
+  "", "", "", "", "", "", "", "", \
+  "", "", "", "", "", "", "", "" }
 
 #define SP_REGNUM 8
 #define PC_REGNUM 9
@@ -47,6 +49,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #define PSW_REGNUM 11
 #define LIR_REGNUM 12
 #define LAR_REGNUM 13
+/* start-sanitize-am33 */
+#define E0_REGNUM 14
+/* end-sanitize-am33 */
 
 #define FP_REGNUM 7