aboutsummaryrefslogtreecommitdiff
path: root/opcodes/moxie-dis.c
diff options
context:
space:
mode:
authorAnthony Green <green@redhat.com>2012-09-28 03:53:39 +0000
committerAnthony Green <green@redhat.com>2012-09-28 03:53:39 +0000
commit1415a2a767bf5ed24c4b4f3b1fc1c45c9a876614 (patch)
tree378084bfb2a2ae4951826a92aa09ba81e00e6358 /opcodes/moxie-dis.c
parent4c2786ba1e67cbfddf0175d7831321ddae2d73a9 (diff)
downloadgdb-1415a2a767bf5ed24c4b4f3b1fc1c45c9a876614.zip
gdb-1415a2a767bf5ed24c4b4f3b1fc1c45c9a876614.tar.gz
gdb-1415a2a767bf5ed24c4b4f3b1fc1c45c9a876614.tar.bz2
Don't abort() when disassembling bad moxie instructions.
Diffstat (limited to 'opcodes/moxie-dis.c')
-rw-r--r--opcodes/moxie-dis.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/opcodes/moxie-dis.c b/opcodes/moxie-dis.c
index 38429de..f726f21 100644
--- a/opcodes/moxie-dis.c
+++ b/opcodes/moxie-dis.c
@@ -174,8 +174,11 @@ print_insn_moxie (bfd_vma addr, struct disassemble_info * info)
length = 6;
}
break;
+ case MOXIE_BAD:
+ fpr (stream, "bad");
+ break;
default:
- abort ();
+ abort();
}
}
else if ((iword & (1<<14)) == 0)
@@ -193,6 +196,9 @@ print_insn_moxie (bfd_vma addr, struct disassemble_info * info)
case MOXIE_F2_NARG:
fpr (stream, "%s", opcode->name);
break;
+ case MOXIE_BAD:
+ fpr (stream, "bad");
+ break;
default:
abort();
}
@@ -208,6 +214,9 @@ print_insn_moxie (bfd_vma addr, struct disassemble_info * info)
info->print_address_func ((bfd_vma) (addr + INST2OFFSET(iword) + 2),
info);
break;
+ case MOXIE_BAD:
+ fpr (stream, "bad");
+ break;
default:
abort();
}