From 5d6c7d6814169a68fce3970cc054c5d7ae08d982 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 10 Nov 1998 23:31:36 +0000 Subject: [PATCH] Add support for disassemble FR30 instructions. --- include/.Sanitize | 28 ++++++++++++++++++++++++++++ include/dis-asm.h | 3 +++ 2 files changed, 31 insertions(+) diff --git a/include/.Sanitize b/include/.Sanitize index 9996ebb..b5f7365 100644 --- a/include/.Sanitize +++ b/include/.Sanitize @@ -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 diff --git a/include/dis-asm.h b/include/dis-asm.h index 70a4da4..63b6eb0 100644 --- a/include/dis-asm.h +++ b/include/dis-asm.h @@ -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*)); -- 2.7.4