aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index ddb16e4..5cba023 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -273,6 +273,13 @@ valprint_check_validity (struct ui_file *stream,
fprintf_filtered (stream, _("<value optimized out>"));
return 0;
}
+
+ if (value_bits_synthetic_pointer (val, TARGET_CHAR_BIT * offset,
+ TARGET_CHAR_BIT * TYPE_LENGTH (type)))
+ {
+ fputs_filtered (_("<synthetic pointer>"), stream);
+ return 0;
+ }
}
return 1;