aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/h8300
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1996-06-18 23:29:39 +0000
committerJeff Law <law@redhat.com>1996-06-18 23:29:39 +0000
commitd15396dfe53119c52686697c4651bd646f74ee41 (patch)
tree24291f294fde9be3806c3196ec58d74a88c60e14 /gdb/config/h8300
parent934f9fa0ff4d46e9a0b66fb1f7993b75d953f23c (diff)
downloadgdb-d15396dfe53119c52686697c4651bd646f74ee41.zip
gdb-d15396dfe53119c52686697c4651bd646f74ee41.tar.gz
gdb-d15396dfe53119c52686697c4651bd646f74ee41.tar.bz2
* h8300-dep.c (gdb_print_insn_h8300): Handle the H8/S.
(h8300_command): Likewise. (set_machine): Likewise. (set_machine_hook): Likewise. (_initialize_h8300m): Likewise. * config/h8300/tm-h8300.h (h8300smode): Declare. More sanitized H8/S work.
Diffstat (limited to 'gdb/config/h8300')
-rw-r--r--gdb/config/h8300/.Sanitize27
-rw-r--r--gdb/config/h8300/tm-h8300.h3
2 files changed, 30 insertions, 0 deletions
diff --git a/gdb/config/h8300/.Sanitize b/gdb/config/h8300/.Sanitize
index b29dad1..0c94ff7 100644
--- a/gdb/config/h8300/.Sanitize
+++ b/gdb/config/h8300/.Sanitize
@@ -15,6 +15,33 @@
Do-first:
+h8s_files="tm-h8300.h"
+if ( echo $* | grep keep\-h8s > /dev/null ) ; then
+ for i in $h8s_files ; do
+ if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping h8s stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $h8s_files ; do
+ if test ! -d $i && (grep sanitize-h8s $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"h8s\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-h8s/,/end-\sanitize\-h8s/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
# All files listed between the "Things-to-keep:" line and the
# "Files-to-sed:" line will be kept. All other files will be removed.
# Directories listed in this section will have their own Sanitize
diff --git a/gdb/config/h8300/tm-h8300.h b/gdb/config/h8300/tm-h8300.h
index 52a4ef6..d09f47b 100644
--- a/gdb/config/h8300/tm-h8300.h
+++ b/gdb/config/h8300/tm-h8300.h
@@ -22,6 +22,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* 1 if debugging H8/300H application */
extern int h8300hmode;
+/* start-sanitize-h8s */
+extern int h8300smode;
+/* end-sanitize-h8s */
/* Number of bytes in a word */