diff options
author | qiyao <qiyao> | 2013-08-08 05:10:09 +0000 |
---|---|---|
committer | qiyao <qiyao> | 2013-08-08 05:10:09 +0000 |
commit | 5fd72d2eee6cb085004ab23c22a27ad37ecc2f22 (patch) | |
tree | ebd75061e845bb69330a42d8c5a3c897ecfca368 /gdb/mi | |
parent | d86f9c8ccb2d91a674a57c1a4259a69e8269fa16 (diff) | |
download | gdb-5fd72d2eee6cb085004ab23c22a27ad37ecc2f22.tar.gz |
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 9294e4609e3..e542fc19432 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; } |