* stack.c (read_frame_arg): Set 'entryval_error' to NULL if
	'entryval' is set.

gdb/testsuite/

	* gdb.trace/collection.exp (gdb_collect_args_test): Set
	"only" and "both" to 'print entry-values' before selecting
	trace frame.
This commit is contained in:
Yao Qi 2013-08-09 00:35:40 +00:00
parent a780258f0e
commit 1ed8d8006b
4 changed files with 31 additions and 1 deletions

View file

@ -469,7 +469,10 @@ read_frame_arg (struct symbol *sym, struct frame_info *frame,
|| print_entry_values == print_entry_values_both
|| (print_entry_values == print_entry_values_preferred
&& (!val || value_optimized_out (val))))
entryval = allocate_optimized_out_value (SYMBOL_TYPE (sym));
{
entryval = allocate_optimized_out_value (SYMBOL_TYPE (sym));
entryval_error = NULL;
}
}
if ((print_entry_values == print_entry_values_compact
|| print_entry_values == print_entry_values_if_needed