aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-06-06 10:01:40 -0600
committerTom Tromey <tromey@adacore.com>2022-06-20 09:11:13 -0600
commit5ffa6ca3e553563004bd9d306bef38e2bee6fecc (patch)
tree94b45b310ad391198f8a7e4e86c289352262ed6b /gdb/valprint.h
parent0d02e70b197c786f26175b9a73f94e01d14abdab (diff)
downloadfsf-binutils-gdb-5ffa6ca3e553563004bd9d306bef38e2bee6fecc.zip
fsf-binutils-gdb-5ffa6ca3e553563004bd9d306bef38e2bee6fecc.tar.gz
fsf-binutils-gdb-5ffa6ca3e553563004bd9d306bef38e2bee6fecc.tar.bz2
Move finish_print out of value_print_options
'finish_print' does not really belong in value_print_options -- this is consulted only when deciding whether or not to print a value, and never during the course of printing. This patch removes it from the structure and makes it a static global in infcmd.c instead. Tested on x86-64 Fedora 34.
Diffstat (limited to 'gdb/valprint.h')
-rw-r--r--gdb/valprint.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/valprint.h b/gdb/valprint.h
index d6ad45d..2e12eaa 100644
--- a/gdb/valprint.h
+++ b/gdb/valprint.h
@@ -103,9 +103,6 @@ struct value_print_options
/* Maximum print depth when printing nested aggregates. */
int max_depth;
-
- /* Whether "finish" should print the value. */
- bool finish_print;
};
/* Create an option_def_group for the value_print options, with OPTS