summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-01-16 21:12:08 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-01-16 21:12:08 (GMT)
commit52ac5b1b340335f56ceb599dba63164a26f10b10 (patch)
tree275104896dffa65e7887284857fa8fed831e9ea8 /src/format
parent2ddb5c26af896b10517a89abf0c9498c598b7697 (diff)
Changed the display of a segment containing the value of an immediate.
Diffstat (limited to 'src/format')
-rw-r--r--src/format/symbol.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/format/symbol.h b/src/format/symbol.h
index 6f38020..94003bb 100644
--- a/src/format/symbol.h
+++ b/src/format/symbol.h
@@ -120,12 +120,13 @@ GDbComment *g_binary_symbol_get_comment(const GBinSymbol *);
* Confort pour l'ajout de symboles basés sur des formats.
*/
-#define SET_IMM_DISPLAY(_ins, _op, _idx, _dsp) \
- do \
- { \
- _op = g_arch_instruction_get_operand(_ins, _idx); \
- g_imm_operand_set_display(G_IMM_OPERAND(_op), _dsp); \
- } \
+#define SET_IMM_DISPLAY(_ins, _op, _idx, _dsp) \
+ do \
+ { \
+ _op = g_arch_instruction_get_operand(_ins, _idx); \
+ g_imm_operand_set_default_display(G_IMM_OPERAND(_op), _dsp); \
+ g_imm_operand_set_display(G_IMM_OPERAND(_op), _dsp); \
+ } \
while (0)
#define ADD_RAW_AS_SYM(_fmt, _sym, _pos, _ins, _cmt, _txt) \