From 8087ca21605a2edcb16cfbded03db8813ea84ef4 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 8 Oct 2010 04:20:14 +0000 Subject: 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 --- lldb/source/Commands/CommandObjectThread.cpp | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'lldb/source/Commands/CommandObjectThread.cpp') 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; -- cgit v1.2.3