This patch fixes debugging of single threaded apps on Linux.
It also adds some asserts and additional logging support.
from dawn@burble.org
llvm-svn: 142384
diff --git a/lldb/source/Plugins/Process/Linux/LinuxThread.h b/lldb/source/Plugins/Process/Linux/LinuxThread.h
index e7d23b8..f625310 100644
--- a/lldb/source/Plugins/Process/Linux/LinuxThread.h
+++ b/lldb/source/Plugins/Process/Linux/LinuxThread.h
@@ -48,6 +48,20 @@
CreateRegisterContextForFrame (lldb_private::StackFrame *frame);
//--------------------------------------------------------------------------
+ // These static functions provide a mapping from the register offset
+ // back to the register index or name for use in debugging or log
+ // output.
+
+ static unsigned
+ GetRegisterIndexFromOffset(unsigned offset);
+
+ static const char *
+ GetRegisterName(unsigned reg);
+
+ static const char *
+ GetRegisterNameFromOffset(unsigned offset);
+
+ //--------------------------------------------------------------------------
// These methods form a specialized interface to linux threads.
//
bool Resume();