aboutsummaryrefslogtreecommitdiff
path: root/opcodes/fr30-dis.c
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2001-11-14 19:48:54 +0000
committerDave Brolley <brolley@redhat.com>2001-11-14 19:48:54 +0000
commit2e1ef6b479bb214b0133c4b49bcf88dda9e3c1e1 (patch)
treeda2dc0f4950cf0ff00245852d65df5ec2f147a7f /opcodes/fr30-dis.c
parent27018c3f6862711768dd744fc092752aa8864489 (diff)
downloadgdb-2e1ef6b479bb214b0133c4b49bcf88dda9e3c1e1.zip
gdb-2e1ef6b479bb214b0133c4b49bcf88dda9e3c1e1.tar.gz
gdb-2e1ef6b479bb214b0133c4b49bcf88dda9e3c1e1.tar.bz2
2001-11-14 Dave Brolley <brolley@redhat.com>
* m32r-dis.c: Regenerated. * fr30-dis.c: Regenerated.
Diffstat (limited to 'opcodes/fr30-dis.c')
-rw-r--r--opcodes/fr30-dis.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/fr30-dis.c b/opcodes/fr30-dis.c
index 5de2681..7f04125 100644
--- a/opcodes/fr30-dis.c
+++ b/opcodes/fr30-dis.c
@@ -500,9 +500,13 @@ print_insn (cd, pc, info, buf, buflen)
CGEN_INSN_INT insn_value;
const CGEN_INSN_LIST *insn_list;
CGEN_EXTRACT_INFO ex_info;
+ int basesize;
/* Extract base part of instruction, just in case CGEN_DIS_* uses it. */
- insn_value = cgen_get_insn_value (cd, buf, buflen * 8);
+ basesize = cd->base_insn_bitsize < buflen * 8 ?
+ cd->base_insn_bitsize : buflen * 8;
+ insn_value = cgen_get_insn_value (cd, buf, basesize);
+
/* Fill in ex_info fields like read_insn would. Don't actually call
read_insn, since the incoming buffer is already read (and possibly