Add support for disassemble FR30 instructions.
authorNick Clifton <nickc@redhat.com>
Tue, 10 Nov 1998 23:31:36 +0000 (23:31 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 10 Nov 1998 23:31:36 +0000 (23:31 +0000)
include/.Sanitize
include/dis-asm.h

index 9996ebb..b5f7365 100644 (file)
@@ -95,6 +95,34 @@ else
        done
 fi
 
+fr30_files="ChangeLog dis-asm.h"
+if ( echo $* | grep keep\-fr30 > /dev/null ) ; then
+       for i in $fr30_files ; do
+               if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping fr30 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $fr30_files ; do
+               if test ! -d $i && (grep sanitize-fr30 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"fr30\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-fr30/,/end-\sanitize\-fr30/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 [ -n "${verbose}" ] ; then
        echo Processing \"sky\"...
 fi
index 70a4da4..63b6eb0 100644 (file)
@@ -162,6 +162,9 @@ extern int print_insn_i960          PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_sh               PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_shl              PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_hppa             PARAMS ((bfd_vma, disassemble_info*));
+/* start-sanitize-fr30 */
+extern int print_insn_fr30             PARAMS ((bfd_vma, disassemble_info*));
+/* end-sanitize-fr30 */
 extern int print_insn_m32r             PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_m88k             PARAMS ((bfd_vma, disassemble_info*));
 extern int print_insn_mn10200          PARAMS ((bfd_vma, disassemble_info*));