summaryrefslogtreecommitdiff
path: root/gdb/p-valprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/p-valprint.c')
-rw-r--r--gdb/p-valprint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c
index 35a4e59d250..cbd7fb75e24 100644
--- a/gdb/p-valprint.c
+++ b/gdb/p-valprint.c
@@ -739,6 +739,7 @@ pascal_object_print_value (struct value *val, struct ui_file *stream,
}
catch (const gdb_exception_error &ex)
{
+ base_value = nullptr;
if (ex.error == NOT_AVAILABLE_ERROR)
skip = -1;
else