diff options
author | Yao Qi <yao@codesourcery.com> | 2013-08-08 05:10:10 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-08-08 05:10:10 +0000 |
commit | 82a0a75ff005db5ff174768120dddb13a6392c5c (patch) | |
tree | 0abc1f3c7c5b7b1e221d4ba1a545749153f79fa2 /gdb/mi | |
parent | 5c4aa40b937c4cb7eeafdc88b7f11e16b3caf503 (diff) | |
download | fsf-binutils-gdb-82a0a75ff005db5ff174768120dddb13a6392c5c.zip fsf-binutils-gdb-82a0a75ff005db5ff174768120dddb13a6392c5c.tar.gz fsf-binutils-gdb-82a0a75ff005db5ff174768120dddb13a6392c5c.tar.bz2 |
gdb/
* frame.h (read_frame_local): Declare.
* mi/mi-cmd-stack.c (list_args_or_locals): Call
read_frame_local.
* stack.c (read_frame_local): New.
gdb/testsuite/
* gdb.trace/mi-trace-unavailable.exp: Don't set
"print entry-values" to "no".
(test_trace_unavailable): Set various values to
"print entry-values" to test that the output of
'-stack-list-locals' is not affected, and then set
set "print entry-values" to "no".
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-stack.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index 9294e46..e542fc1 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -602,7 +602,10 @@ list_args_or_locals (enum what_to_list what, enum print_values values, && TYPE_CODE (type) != TYPE_CODE_UNION) { case PRINT_ALL_VALUES: - read_frame_arg (sym2, fi, &arg, &entryarg); + if (SYMBOL_IS_ARGUMENT (sym)) + read_frame_arg (sym2, fi, &arg, &entryarg); + else + read_frame_local (sym2, fi, &arg); } break; } |