aboutsummaryrefslogtreecommitdiff
path: root/include/opcode
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 /include/opcode
parent4c2786ba1e67cbfddf0175d7831321ddae2d73a9 (diff)
downloadgdb-1415a2a767bf5ed24c4b4f3b1fc1c45c9a876614.zip
gdb-1415a2a767bf5ed24c4b4f3b1fc1c45c9a876614.tar.gz
gdb-1415a2a767bf5ed24c4b4f3b1fc1c45c9a876614.tar.bz2
Don't abort() when disassembling bad moxie instructions.
Diffstat (limited to 'include/opcode')
-rw-r--r--include/opcode/moxie.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/opcode/moxie.h b/include/opcode/moxie.h
index e2bc374..dae40c8 100644
--- a/include/opcode/moxie.h
+++ b/include/opcode/moxie.h
@@ -60,6 +60,8 @@
#define MOXIE_F3_NARG 0x300
#define MOXIE_F3_PCREL 0x301
+#define MOXIE_BAD 0x400
+
typedef struct moxie_opc_info_t
{
short opcode;
@@ -67,6 +69,6 @@ typedef struct moxie_opc_info_t
const char * name;
} moxie_opc_info_t;
-extern const moxie_opc_info_t moxie_form1_opc_info[64];
+extern const moxie_opc_info_t moxie_form1_opc_info[128];
extern const moxie_opc_info_t moxie_form2_opc_info[4];
extern const moxie_opc_info_t moxie_form3_opc_info[16];