Use scoped_value_mark in value_print
Switching the low-level printing to use the value API means we will be using more temporary values. This adds a scoped_value_mark to value_print, so that these intermediates are destroyed in a timely way. gdb/ChangeLog 2020-03-13 Tom Tromey <tom@tromey.com> * valprint.c (value_print): Use scoped_value_mark.
This commit is contained in:
parent
1b83d09cd5
commit
ce3acbe9fa
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2020-03-13 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* valprint.c (value_print): Use scoped_value_mark.
|
||||||
|
|
||||||
2020-03-13 Tom de Vries <tdevries@suse.de>
|
2020-03-13 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
PR symtab/25646
|
PR symtab/25646
|
||||||
|
|
|
@ -1227,6 +1227,8 @@ void
|
||||||
value_print (struct value *val, struct ui_file *stream,
|
value_print (struct value *val, struct ui_file *stream,
|
||||||
const struct value_print_options *options)
|
const struct value_print_options *options)
|
||||||
{
|
{
|
||||||
|
scoped_value_mark free_values;
|
||||||
|
|
||||||
if (!value_check_printable (val, stream, options))
|
if (!value_check_printable (val, stream, options))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue