diff options
author | Enrico Granata <granata.enrico@gmail.com> | 2011-08-09 23:50:01 +0000 |
---|---|---|
committer | Enrico Granata <granata.enrico@gmail.com> | 2011-08-09 23:50:01 +0000 |
commit | ce68b02c99d4f87b0d8bf7394333b55c56285a08 (patch) | |
tree | 5f6c70622627900db2b4f7323e78a1750572f4fc /lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp | |
parent | b91e48992329d7039c4c3899a5e6df02cbf3cf90 (diff) | |
download | bcm5719-llvm-ce68b02c99d4f87b0d8bf7394333b55c56285a08.tar.gz bcm5719-llvm-ce68b02c99d4f87b0d8bf7394333b55c56285a08.zip |
CFString.py now shows contents in a more NSString-like way (e.g. you get @"Hello" instead of "Hello")
new --raw-output (-R) option to frame variable prevents using summaries and synthetic children
other future formatting enhancements will be excluded by using the -R option
test case enhanced to check that -R works correctly
llvm-svn: 137185
Diffstat (limited to 'lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp')
-rw-r--r-- | lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp b/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp index b2ca4ae7213..b274521445b 100644 --- a/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp +++ b/lldb/source/Interpreter/OptionGroupValueObjectDisplay.cpp @@ -40,6 +40,7 @@ g_option_table[] = { LLDB_OPT_SET_1, false, "ptr-depth", 'P', required_argument, NULL, 0, eArgTypeCount, "The number of pointers to be traversed when dumping values (default is zero)."}, { LLDB_OPT_SET_1, false, "show-types", 'T', no_argument, NULL, 0, eArgTypeNone, "Show variable types when dumping values."}, { LLDB_OPT_SET_1, false, "no-summary-depth",'Y', optional_argument, NULL, 0, eArgTypeCount, "Set a depth for omitting summary information (default is 1)."}, + { LLDB_OPT_SET_1, false, "raw-output", 'R', no_argument, NULL, 0, eArgTypeNone, "Don't use formatting options."}, { 0, false, NULL, 0, 0, NULL, NULL, eArgTypeNone, NULL } }; @@ -83,7 +84,9 @@ OptionGroupValueObjectDisplay::SetOptionValue (CommandInterpreter &interpreter, case 'T': show_types = true; break; case 'L': show_location= true; break; case 'F': flat_output = true; break; - case 'O': use_objc = true; break; + case 'O': use_objc = true; break; + case 'R': be_raw = true; break; + case 'D': max_depth = Args::StringToUInt32 (option_arg, UINT32_MAX, 0, &success); if (!success) @@ -131,6 +134,7 @@ OptionGroupValueObjectDisplay::OptionParsingStarting (CommandInterpreter &interp max_depth = UINT32_MAX; ptr_depth = 0; use_synth = true; + be_raw = false; Target *target = interpreter.GetExecutionContext().target; if (target != NULL) |