diff options
author | qiyao <qiyao> | 2013-08-09 00:35:39 +0000 |
---|---|---|
committer | qiyao <qiyao> | 2013-08-09 00:35:39 +0000 |
commit | cf86df5d2f6e849d476fe91b6affd2f2ab20cafc (patch) | |
tree | b03978b712bf7e6ed33a13e2fc39fbc0facbcad4 /gdb/stack.c | |
parent | ae30380eb0975c4da4a16a1c6392320d009f4b87 (diff) | |
download | gdb-cf86df5d2f6e849d476fe91b6affd2f2ab20cafc.tar.gz |
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 7d97dc83287..86932f8e7b7 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 |