diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-04-04 22:38:04 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-04-04 22:41:24 +0100 |
commit | 7b01c1cc1d111ba0afa51e60fa9842d3b971e2d1 (patch) | |
tree | ba53406de8080613704aa3247a77dd9a360e1521 /sim/erc32/sis.h | |
parent | 0578e87f93b09e4cc41d3982eb1672bcfc81042d (diff) | |
download | gdb-7b01c1cc1d111ba0afa51e60fa9842d3b971e2d1.zip gdb-7b01c1cc1d111ba0afa51e60fa9842d3b971e2d1.tar.gz gdb-7b01c1cc1d111ba0afa51e60fa9842d3b971e2d1.tar.bz2 |
sim: fixes for libopcodes styled disassembler
In commit:
commit 60a3da00bd5407f07d64dff82a4dae98230dfaac
Date: Sat Jan 22 11:38:18 2022 +0000
objdump/opcodes: add syntax highlighting to disassembler output
I broke several sim/ targets by forgetting to update their uses of the
libopcodes disassembler to take account of the new styled printing.
These should all be fixed by this commit.
I've not tried to add actual styled output to the simulator traces,
instead, the styled print routines just ignore the style and print the
output unstyled.
Diffstat (limited to 'sim/erc32/sis.h')
-rw-r--r-- | sim/erc32/sis.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/erc32/sis.h b/sim/erc32/sis.h index 33f16c7..3a27667 100644 --- a/sim/erc32/sis.h +++ b/sim/erc32/sis.h @@ -18,6 +18,7 @@ #include "sim/sim.h" #include <sim-config.h> #include <stdint.h> +#include "dis-asm.h" #if HOST_BYTE_ORDER == BIG_ENDIAN #define HOST_BIG_ENDIAN @@ -203,6 +204,8 @@ extern void init_regs (struct pstate *sregs); /* interf.c */ extern int run_sim (struct pstate *sregs, uint64_t icount, int dis); +extern int fprintf_styled (void *stream, enum disassembler_style style, + const char *fmt, ...) ATTRIBUTE_PRINTF (3, 4); /* float.c */ extern int get_accex (void); |