diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-03-31 08:18:58 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-03-31 08:18:58 +0200 |
commit | edd67638687a06788c8c69c75e139bca8f94f1a3 (patch) | |
tree | 2a61dec9a6dc6e5926ccbdbf90224b64f2f8b7c7 /opcodes | |
parent | af9eb2ee1b10caa89e1c603cd484bc025e71f4fd (diff) | |
download | gdb-edd67638687a06788c8c69c75e139bca8f94f1a3.zip gdb-edd67638687a06788c8c69c75e139bca8f94f1a3.tar.gz gdb-edd67638687a06788c8c69c75e139bca8f94f1a3.tar.bz2 |
x86: introduce .insn directive
For starters this deals with only very basic constructs.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/i386-gen.c | 3 | ||||
-rw-r--r-- | opcodes/i386-mnem.h | 1 | ||||
-rw-r--r-- | opcodes/i386-tbl.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index 76ccd32..489ae34 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -1814,6 +1814,9 @@ process_i386_opcodes (FILE *table) l = l1; } + fprintf (table, " \"\\0\"\".insn\"\n"); + fprintf (fp, "#define MN__insn %#x\n", offs + 1); + fprintf (table, ";\n"); fclose (fp); diff --git a/opcodes/i386-mnem.h b/opcodes/i386-mnem.h index 4ca786a..3e0af79 100644 --- a/opcodes/i386-mnem.h +++ b/opcodes/i386-mnem.h @@ -2339,3 +2339,4 @@ extern const char i386_mnemonics[]; #define MN__rex_ 0x469c #define MN__evex_ 0x46a2 #define MN__vex_ 0x46a9 +#define MN__insn 0x46af diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h index bc830af..ed7c43c 100644 --- a/opcodes/i386-tbl.h +++ b/opcodes/i386-tbl.h @@ -60199,6 +60199,7 @@ const char i386_mnemonics[] = "\0""{rex}" "\0""{evex}" "\0""{vex}" + "\0"".insn" ; /* i386 register table. */ |