[gdb/testsuite] Fix gdb.dwarf2/locexpr-data-member-location.exp with nopie
[binutils-gdb.git] / gdb / c-valprint.c
index 93e7cfd4254281add1e46fd7840dcc8309511982..bd445588ca08e8d10472c5781e6d5c2d0cb9381e 100644 (file)
@@ -182,7 +182,7 @@ print_unpacked_pointer (struct type *type, struct type *elttype,
       /* If 'symbol_print' is set, we did the work above.  */
       if (!options->symbol_print
          && (msymbol.minsym != NULL)
-         && (vt_address == BMSYMBOL_VALUE_ADDRESS (msymbol)))
+         && (vt_address == msymbol.value_address ()))
        {
          if (want_space)
            gdb_puts (" ", stream);