diff options
Diffstat (limited to 'gdb/m2-exp.y')
-rw-r--r-- | gdb/m2-exp.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index 12a8a50..037a074 100644 --- a/gdb/m2-exp.y +++ b/gdb/m2-exp.y @@ -631,7 +631,7 @@ variable: NAME { write_exp_elt_opcode (OP_LONG); write_exp_elt_type (builtin_type_int); - write_exp_elt_longcst ((LONGEST) msymbol -> address); + write_exp_elt_longcst ((LONGEST) SYMBOL_VALUE_ADDRESS (msymbol)); write_exp_elt_opcode (OP_LONG); write_exp_elt_opcode (UNOP_MEMVAL); if (msymbol -> type == mst_data || |