Don't print symbol on address 0x0
[deliverable/binutils-gdb.git] / gdb / p-valprint.c
index 5300d6b5f169db0483b2c8ae2c2ec2f6d99b23a5..70eb3a8c677cb261f34df56e4caddc49e4c3be6e 100644 (file)
@@ -38,6 +38,7 @@
 #include "cp-abi.h"
 #include "cp-support.h"
 #include "exceptions.h"
+#include "objfiles.h"
 \f
 
 /* Decorations for Pascal.  */
@@ -227,7 +228,7 @@ pascal_val_print (struct type *type, const gdb_byte *valaddr,
          /* If 'symbol_print' is set, we did the work above.  */
          if (!options->symbol_print
              && (msymbol.minsym != NULL)
-             && (vt_address == MSYMBOL_VALUE_ADDRESS (msymbol.minsym)))
+             && (vt_address == BMSYMBOL_VALUE_ADDRESS (msymbol)))
            {
              if (want_space)
                fputs_filtered (" ", stream);
This page took 0.023141 seconds and 4 git commands to generate.