diff options
author | Enrico Granata <granata.enrico@gmail.com> | 2011-07-19 18:03:25 +0000 |
---|---|---|
committer | Enrico Granata <granata.enrico@gmail.com> | 2011-07-19 18:03:25 +0000 |
commit | 20edcdbe8a267924e19646374cbead05ec9ea027 (patch) | |
tree | 9fa2db828ee6766299dde760d07431b4602c2423 /lldb/source/Target/StackFrame.cpp | |
parent | 33824e572253bcb491a7e0d2a09a7f857f259f34 (diff) | |
download | llvm-20edcdbe8a267924e19646374cbead05ec9ea027.zip llvm-20edcdbe8a267924e19646374cbead05ec9ea027.tar.gz llvm-20edcdbe8a267924e19646374cbead05ec9ea027.tar.bz2 |
The implementation of categories is now synchronization safe
Code cleanup:
- The Format Manager implementation is now split between two files: FormatClasses.{h|cpp} where the
actual formatter classes (ValueFormat, SummaryFormat, ...) are implemented and
FormatManager.{h|cpp} where the infrastructure classes (FormatNavigator, FormatManager, ...)
are contained. The wrapper code always remains in Debugger.{h|cpp}
- Several leftover fields, methods and comments from previous design choices have been removed
type category subcommands (enable, disable, delete) now can take a list of category names as input
- for type category enable, saying "enable A B C" is the same as saying
enable C
enable B
enable A
(the ordering is relevant in enabling categories, and it is expected that a user typing
enable A B C wants to look into category A, then into B, then into C and not the other
way round)
- for the other two commands, the order is not really relevant (however, the same inverted ordering
is used for consistency)
llvm-svn: 135494
Diffstat (limited to 'lldb/source/Target/StackFrame.cpp')
-rw-r--r-- | lldb/source/Target/StackFrame.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Target/StackFrame.cpp b/lldb/source/Target/StackFrame.cpp index ac67767..48055d0 100644 --- a/lldb/source/Target/StackFrame.cpp +++ b/lldb/source/Target/StackFrame.cpp @@ -752,15 +752,15 @@ StackFrame::GetValueForVariableExpressionPath (const char *var_expr_cstr, // able to find the child member break; } - else if(end && *end == '-') + else if (end && *end == '-') { // this is most probably a BitField, let's take a look char *real_end = NULL; long final_index = ::strtol (end+1, &real_end, 0); - if(real_end && *real_end == ']') + if (real_end && *real_end == ']') { // if the format given is [high-low], swap range - if(child_index > final_index) + if (child_index > final_index) { long temp = child_index; child_index = final_index; |