From 5ffa6ca3e553563004bd9d306bef38e2bee6fecc Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 6 Jun 2022 10:01:40 -0600 Subject: 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. --- gdb/valprint.c | 1 - 1 file changed, 1 deletion(-) (limited to 'gdb/valprint.c') diff --git a/gdb/valprint.c b/gdb/valprint.c index e63ec30..f873e12 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -121,7 +121,6 @@ struct value_print_options user_print_options = 0, /* summary */ 1, /* symbol_print */ PRINT_MAX_DEPTH_DEFAULT, /* max_depth */ - 1 /* finish_print */ }; /* Initialize *OPTS to be a copy of the user print options. */ -- cgit v1.1