diff options
author | Greg Clayton <gclayton@apple.com> | 2010-10-08 04:20:14 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-10-08 04:20:14 +0000 |
commit | 8087ca21605a2edcb16cfbded03db8813ea84ef4 (patch) | |
tree | 3f76ae2486d7a0793f73ad95156875bc07bbcbca /lldb/source/Commands/CommandObjectThread.cpp | |
parent | bb6a881862cd05e05bc5abaff9d321fa741de133 (diff) | |
download | bcm5719-llvm-8087ca21605a2edcb16cfbded03db8813ea84ef4.tar.gz bcm5719-llvm-8087ca21605a2edcb16cfbded03db8813ea84ef4.zip |
Added mutex protection to the Symtab class.
Added a new SortOrder enumeration and hooked it up to the "image dump symtab"
command so we can dump symbol tables in the original order, sorted by address,
or sorted by name.
llvm-svn: 116049
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectThread.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index 203c6b9c519..ece29d394d9 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -506,7 +506,7 @@ public: switch (short_option) { - case 'a': + case 'a': { bool success; m_avoid_no_debug = Args::StringToBoolean (option_arg, true, &success); @@ -514,7 +514,8 @@ public: error.SetErrorStringWithFormat("Invalid boolean value for option '%c'.\n", short_option); } break; - case 'm': + + case 'm': { bool found_one = false; OptionEnumValueElement *enum_values = g_option_table[option_idx].enum_values; @@ -523,15 +524,17 @@ public: error.SetErrorStringWithFormat("Invalid enumeration value for option '%c'.\n", short_option); } break; - case 'r': + + case 'r': { m_avoid_regexp.clear(); m_avoid_regexp.assign(option_arg); } break; - default: - error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option); - break; + + default: + error.SetErrorStringWithFormat("Invalid short option character '%c'.\n", short_option); + break; } return error; |