Hoist the RegisterNumber class out of RegisterContextLLDB and make
authorJason Molenda <jmolenda@apple.com>
Sat, 10 Jan 2015 04:01:03 +0000 (04:01 +0000)
committerJason Molenda <jmolenda@apple.com>
Sat, 10 Jan 2015 04:01:03 +0000 (04:01 +0000)
commita05677126d06cf1abc019db231f5f918cf08e3f7
tree1f4bd1d2b40dd7e33af89d25e6309a2d605fe2bc
parentc552218e286b172a6fc388b8c3237eb0c2825123
Hoist the RegisterNumber class out of RegisterContextLLDB and make
it more generally available.

Add checks to UnwindAssembly_x86::AugmentUnwindPlanFromCallSite() so
that it won't try to augment an UnwindPlan that already describes
the function epilogue.

Add a test case for backtracing out of _sigtramp on Darwin systems.
This could probably be adapted to test the same thing on linux/bsd but
the function names of sigtramp and kill are probably platform
specific and I'm not sure what they should be.

llvm-svn: 225578
lldb/lldb.xcodeproj/project.pbxproj
lldb/source/Plugins/Process/Utility/RegisterContextLLDB.h
lldb/source/Plugins/UnwindAssembly/x86/UnwindAssembly-x86.cpp
lldb/source/Utility/RegisterNumber.cpp [new file with mode: 0644]
lldb/test/functionalities/unwind/sigtramp/Makefile [new file with mode: 0644]
lldb/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py [new file with mode: 0644]
lldb/test/functionalities/unwind/sigtramp/main.c [new file with mode: 0644]