diff options
author | Tom Tromey <tromey@adacore.com> | 2021-04-15 10:14:11 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2021-04-15 10:14:11 -0600 |
commit | 644a2e75ace6b5e76f91d38c28c3b97fcfdeeaa5 (patch) | |
tree | 8dfae99c64bfcfb054974869ed1df8deeceb96b8 /gdb/ada-valprint.c | |
parent | 9e5e03df52968b416e09a59482409abfed9727c0 (diff) | |
download | binutils-644a2e75ace6b5e76f91d38c28c3b97fcfdeeaa5.zip binutils-644a2e75ace6b5e76f91d38c28c3b97fcfdeeaa5.tar.gz binutils-644a2e75ace6b5e76f91d38c28c3b97fcfdeeaa5.tar.bz2 |
Use common_val_print_checked in print_variable_and_value
GDB was crashing in "bt full" for a large Ada program. I tracked this
down to a combination of bugs.
The first bug, fixed here, is that print_variable_and_value calls
common_val_print. Normally only the value-printing implementation
should call this; from the top level, common_val_print_checked is
preferred, because it correctly handles values that are wholly
optimized out.
I wasn't able to write a test case for this.
gdb/ChangeLog
2021-04-15 Tom Tromey <tromey@adacore.com>
* printcmd.c (print_variable_and_value): Use
common_val_print_checked.
Diffstat (limited to 'gdb/ada-valprint.c')
0 files changed, 0 insertions, 0 deletions