diff options
author | Jeff Law <law@redhat.com> | 1996-07-11 18:24:59 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1996-07-11 18:24:59 +0000 |
commit | 81fc72a71afcfb73878803f5f27402c0f96155a5 (patch) | |
tree | 863c0d0318ff256b0482dc22e99fec90f4e960ee | |
parent | 2757047686290214cff2cf30207e986d6b4f0722 (diff) | |
download | gdb-81fc72a71afcfb73878803f5f27402c0f96155a5.zip gdb-81fc72a71afcfb73878803f5f27402c0f96155a5.tar.gz gdb-81fc72a71afcfb73878803f5f27402c0f96155a5.tar.bz2 |
* h8300-dis.c (bfd_h8_disassemble): We don't have a match
if we're looking for KBIT and we don't find it.
So we don't disassemble "inc" instructions as "adds" instructions.
-rw-r--r-- | opcodes/ChangeLog | 3 | ||||
-rw-r--r-- | opcodes/h8300-dis.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 27dc16d..e1cdd6c 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,4 +1,7 @@ Thu Jul 11 11:58:44 1996 Jeffrey A Law (law@cygnus.com) + + * h8300-dis.c (bfd_h8_disassemble): We don't have a match + if we're looking for KBIT and we don't find it. * h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits for L_3 and L_2. diff --git a/opcodes/h8300-dis.c b/opcodes/h8300-dis.c index 959cb75..975aba1 100644 --- a/opcodes/h8300-dis.c +++ b/opcodes/h8300-dis.c @@ -234,6 +234,8 @@ bfd_h8_disassemble (addr, info, mode) case 0: abs = 1; break; + default: + goto fail; } } else if (looking_for & L_8) |