Use scoped_restore in varobj.c
authorTom Tromey <tromey@adacore.com>
Mon, 24 Apr 2023 18:25:53 +0000 (12:25 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 25 Apr 2023 18:01:45 +0000 (12:01 -0600)
commitb6fc08e89f31f16059303bdca2ec9a74f89b5a05
tree4d80dba2db70a3f825331148ccb617637d63bac9
parentfc53c8e02183b61a9df0224de1d7016fb52960ba
Use scoped_restore in varobj.c

One spot in varobj.c should use scoped_restore to save and restore
input_radix.  Note that the current code may fail to restore it on
error, so this patch fixes a latent bug.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/varobj.c