Initialize base_value in pascal_object_print_value
authorTom Tromey <tom@tromey.com>
Tue, 17 Mar 2020 00:32:44 +0000 (18:32 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 17 Mar 2020 00:35:11 +0000 (18:35 -0600)
commit771dd3a88b1f0e03a110fc4f2207913df45f8b4b
tree2ba01980d5273e273bdccd4579f8c87b8ebdd1a6
parent817a7585764366397879cbbedfd7e9c1454b656c
Initialize base_value in pascal_object_print_value

The val_print removal series introduced a new possibly-uninitialized
warning in p-valprint.c.  Examination of the code shows that the
warning does not indicate a real bug, so this patch silences the
warning by setting the variable in the catch clause of a try/catch.
(The obvious initialization did not work due to a "goto" in this
function.)

gdb/ChangeLog
2020-03-16  Tom Tromey  <tom@tromey.com>

* p-valprint.c (pascal_object_print_value): Initialize
base_value.
gdb/ChangeLog
gdb/p-valprint.c