diff options
author | Yao Qi <yao@codesourcery.com> | 2013-08-09 00:35:40 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-08-09 00:35:40 +0000 |
commit | 1ed8d8006b916d7cda234df9660252545051c6fe (patch) | |
tree | 5e7f2fa9efb86e4ecfa462e3740772fcadf23de8 /gdb/stack.c | |
parent | a780258f0e9996592731fe594856f94ce7142001 (diff) | |
download | gdb-1ed8d8006b916d7cda234df9660252545051c6fe.zip gdb-1ed8d8006b916d7cda234df9660252545051c6fe.tar.gz gdb-1ed8d8006b916d7cda234df9660252545051c6fe.tar.bz2 |
gdb/
* 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.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 7d97dc8..86932f8 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -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 |