aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandar Markovic <amarkovic@wavecomp.com>2020-01-24 17:38:47 +0100
committerAleksandar Markovic <amarkovic@wavecomp.com>2020-01-29 19:28:52 +0100
commit3404e180f9f08de070371932cb98817a25467781 (patch)
tree5e89ae55209f0595cb4736a953cb3c3f1ce1af99
parent2048d5d4bce179f051db1f7dd7f6111cd385700b (diff)
disas: Add a field for target-dependant data to disassemble_info
This patch adds a field "target_info" to the structure disassemble_info. The purpose of this field is to enable targets to pass to disassembler code any additional data thet deem suitable. Reviewed-by: Aleksandar Rikalo <aleksandar.rikalo@rt-rk.com> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com> Message-Id: <1579883929-1517-6-git-send-email-aleksandar.markovic@rt-rk.com>
-rw-r--r--include/disas/dis-asm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/disas/dis-asm.h b/include/disas/dis-asm.h
index e9c7dd8eb4..f87f468809 100644
--- a/include/disas/dis-asm.h
+++ b/include/disas/dis-asm.h
@@ -372,6 +372,9 @@ typedef struct disassemble_info {
/* Command line options specific to the target disassembler. */
char * disassembler_options;
+ /* Field intended to be used by targets in any way they deem suitable. */
+ int64_t target_info;
+
/* Options for Capstone disassembly. */
int cap_arch;
int cap_mode;