diff options
author | Enrico Granata <egranata@apple.com> | 2012-12-12 03:23:37 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-12-12 03:23:37 +0000 |
commit | 7b8c513f089a69741797e39b2d0db00ce1db704a (patch) | |
tree | 852bb47d696f509fd416510aaa62fb4751fa60dd /lldb/source/Commands/CommandObjectExpression.cpp | |
parent | 181879c293df6a88e8ef054c67c3b32beb5fc92c (diff) | |
download | bcm5719-llvm-7b8c513f089a69741797e39b2d0db00ce1db704a.tar.gz bcm5719-llvm-7b8c513f089a69741797e39b2d0db00ce1db704a.zip |
Option changes:
the option to print the runtime-specific description has been modified in the frame variable, memory read and expression command.
All three commands now support a --object-description option, with a shortcut of -O (uppercase letter o)
This is a breaking change:
frame variable used --objc as the long option name
expression used -o as a shortcut
memory read uses --objd as the long option name
Hopefully, most users won't be affected by the change since people tend to access "expression --object-description" under the alias "po" which still works
The test suite has been tweaked accordingly.
llvm-svn: 169961
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectExpression.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index e28c8e8261d..dc534f1e037 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -56,7 +56,7 @@ CommandObjectExpression::CommandOptions::g_option_table[] = { LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "dynamic-value", 'd', required_argument, NULL, 0, eArgTypeBoolean, "Upcast the value resulting from the expression to its dynamic type if available."}, { LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "timeout", 't', required_argument, NULL, 0, eArgTypeUnsignedInteger, "Timeout value for running the expression."}, { LLDB_OPT_SET_1 | LLDB_OPT_SET_2, false, "unwind-on-error", 'u', required_argument, NULL, 0, eArgTypeBoolean, "Clean up program state if the expression causes a crash, breakpoint hit or signal."}, - { LLDB_OPT_SET_2 , false, "object-description", 'o', no_argument, NULL, 0, eArgTypeNone, "Print the object description of the value resulting from the expression."}, + { LLDB_OPT_SET_2 , false, "object-description", 'O', no_argument, NULL, 0, eArgTypeNone, "Print the object description of the value resulting from the expression."}, }; @@ -113,7 +113,7 @@ CommandObjectExpression::CommandOptions::SetOptionValue (CommandInterpreter &int } break; - case 'o': + case 'O': print_object = true; break; |