aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-04-01 16:56:06 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-04-01 16:56:06 +0000
commitf7ed13c7d50d5eb44360d2dd991e78c574460064 (patch)
tree687fb4d06db813458d01e3c1726fe4c5af4f507f /opcodes
parentd1c89c281780bf3f8a3c584e5b44926ff347a442 (diff)
downloadgdb-f7ed13c7d50d5eb44360d2dd991e78c574460064.zip
gdb-f7ed13c7d50d5eb44360d2dd991e78c574460064.tar.gz
gdb-f7ed13c7d50d5eb44360d2dd991e78c574460064.tar.bz2
merge binutils and gdb sparc disassemblers
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/.Sanitize21
-rw-r--r--opcodes/ChangeLog22
-rw-r--r--opcodes/Makefile.in7
3 files changed, 48 insertions, 2 deletions
diff --git a/opcodes/.Sanitize b/opcodes/.Sanitize
index 5b3c6de..e7eae02 100644
--- a/opcodes/.Sanitize
+++ b/opcodes/.Sanitize
@@ -52,4 +52,25 @@ else
mv new sparc-opc.c
fi
+
+v9dirty="sparc-pinsn.c"
+
+if ( echo $* | grep keep\-v9 > /dev/null ) ; then
+ echo Keeping v9 in ${v9dirty}
+else
+ for i in ${v9dirty} ; do
+ echo Sanitizing v9 in $i
+ rm -f new
+ sed '/^#ifndef[ ]NO_V9/,/^#endif/d' < $i > new
+ if grep -s -i v9 new ; then
+ echo ***** SANITIZING V9 IN $i FAILED *****
+ fi
+ if [ -n "${safe}" ] ; then
+ mv $i .Recover
+ else
+ rm $i
+ fi
+ mv new $i
+ done
+fi
# End of file.
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index a3ff6e7..1d1fe25 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,25 @@
+Wed Mar 31 10:07:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
+
+ * Makefile.in: Add sparc-dis.c.
+ sparc-dis.c: New file, merges binutils and gdb versions as follows:
+ From GDB:
+ Add `add' instruction to the set that get checked
+ for a preceding `sethi' in order to print an absolute address.
+ * (print_insn): Disassembly prefers real instructions.
+ (is_delayed_branch): Speed up.
+ * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
+ Still missing some float ops, and needs testing.
+ * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
+ F_ALIAS. Use printf, not fprintf, when not passing a file
+ pointer...
+ (compare_opcodes): Check that identical instructions have
+ identical opcodes, complain otherwise.
+ From binutils:
+ * New 'm' arg.
+ * Include reg_names.
+ From neither:
+ Use dis-asm.h/read_memory_func interface.
+
Wed Mar 31 20:49:06 1993 K. Richard Pixley (rich@rtl.cygnus.com)
* h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in
index 47dbd2e..d45468f 100644
--- a/opcodes/Makefile.in
+++ b/opcodes/Makefile.in
@@ -61,8 +61,10 @@ DEP = mkdep
TARGETLIB = libopcodes.a
-
-DIS_LIBS = i386-dis.o z8k-dis.o m68k-dis.o mips-dis.o h8500-dis.o dis-buf.o
+# To circumvent a Sun make VPATH bug, each file listed here
+# should also have a foo.o: foo.c line further along in this file.
+DIS_LIBS = i386-dis.o z8k-dis.o m68k-dis.o mips-dis.o h8500-dis.o dis-buf.o \
+ sparc-dis.o
OFILES = $(DIS_LIBS) sparc-opc.o m68881-ext.o
#### host and target dependent Makefile fragments come in here.
@@ -114,6 +116,7 @@ $(TARGETLIB): $(OFILES)
sparc-opc.o: sparc-opc.c
m68881-ext.o: m68881-ext.c
h8500-dis.o: h8500-dis.c
+sparc-dis.o: sparc-dis.c
tags etags: TAGS