int stopped_by_random_signal;
+
+/* Whether "finish" should print the value. */
+
+static bool finish_print = true;
+
\f
static void
{
if (rv->value != NULL)
{
- struct value_print_options opts;
-
/* Print it. */
uiout->text ("Value returned is ");
uiout->field_fmt ("gdb-result-var", "$%d",
rv->value_history_index);
uiout->text (" = ");
- get_user_print_options (&opts);
- if (opts.finish_print)
+ if (finish_print)
{
+ struct value_print_options opts;
+ get_user_print_options (&opts);
+
string_file stb;
value_print (rv->value, &stb, &opts);
uiout->field_stream ("return-value", stb);
&info_proc_cmdlist);
add_setshow_boolean_cmd ("finish", class_support,
- &user_print_options.finish_print, _("\
+ &finish_print, _("\
Set whether `finish' prints the return value."), _("\
Show whether `finish' prints the return value."), NULL,
NULL,
/* 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