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
diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp
index 203c6b9..ece29d3 100644
--- a/lldb/source/Commands/CommandObjectThread.cpp
+++ b/lldb/source/Commands/CommandObjectThread.cpp
@@ -506,7 +506,7 @@
 
             switch (short_option)
             {
-                case 'a':
+            case 'a':
                 {
                     bool success;
                     m_avoid_no_debug =  Args::StringToBoolean (option_arg, true, &success);
@@ -514,7 +514,8 @@
                         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 @@
                         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;