Allow classes to be intialized using current lldb::SB objects. This can help to import/export the current process state.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209702 91177308-0d34-0410-b5e6-96231b3b80d8
Remove unused variable.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209703 91177308-0d34-0410-b5e6-96231b3b80d8
Fix whitespace / formatting



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209737 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid passing null signal name for Log %s argument



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209739 91177308-0d34-0410-b5e6-96231b3b80d8
Fix Windows warnings.

This fixes a number of trivial warnings in the Windows build. This is part of a larger effort to make the Windows build warning-free.

See http://reviews.llvm.org/D3914 for more details.

Change by Zachary Turner



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209749 91177308-0d34-0410-b5e6-96231b3b80d8
Cmake build changes.

Disables exception handling in LLDB, using appropriate compiler
flags depending on the platform. This is consistent with the build
of LLVM, should improve performance, and also removes a substantial number
of warnings from the Windows build.

See http://reviews.llvm.org/D3929 for more details.

Change by Zachary Turner



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209752 91177308-0d34-0410-b5e6-96231b3b80d8
Disabled warning C4251 on MSVC builds.

See http://reviews.llvm.org/D3934 for more details.
This is only the CMakeLists.txt portion of that change.

Change by Zachary Turner.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209756 91177308-0d34-0410-b5e6-96231b3b80d8
Fix build. Method was renamed in r209800.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209807 91177308-0d34-0410-b5e6-96231b3b80d8
Fix r209807 which inadvertently removed things

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209809 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed the Module::Module(ModuleSpec) constructor to properly copy the file offset and object file mod time from the actual module specifications so we will always be able to directly load the image we care about when calling Module::GetObjectFile().



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209833 91177308-0d34-0410-b5e6-96231b3b80d8
gdb-remote testing: new test, cleaned up socket reading.

Added new SocketPacketPump class to decouple gdb remote packet
reading from packet expectations code.  This allowed for cleaner
implementation of the separate $O output streams (non-deterministic
packaging of inferior stdout/stderr) from all the rest of the packets.

Added a packet expectation matcher that can match expected accumulated
output with a timeout.  Use a dictionary with "type":"output_match".
See lldbgdbserverutils.MatchRemoteOutputEntry for details.

Added a gdb remote test to verify that $Hc (continue thread selection)
plus signal delivery ($C{signo}) works.  Having trouble getting this
to pass with debugserver on MacOSX 10.9.  Tried different variants,
including $vCont;C{signo}:{thread-id};c.  In some cases, I get the
test exe's signal handler to run ($vCont variant first time), in others I don't
($vCont second and further times).  $C{signo} doesn't hit the signal
handler code at all in the test exe but delivers a stop.  Further
$Hc and $C{signo} deliver the stop marking the wrong thread.  For now I'm
marking the test as XFAIL on dsym/debugserver.  Will revisit this on
lldb-dev.

Updated the text exe for these tests to support thread:print-ids (each
thread announces its thread id) and provide a SIGUSR1 thread handler
that prints out the thread id on which it was signaled.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209845 91177308-0d34-0410-b5e6-96231b3b80d8
iOS simulator cleanup to make sure we use "*-apple-ios" for iOS simulator apps and binaries.

Changes include:
- ObjectFileMachO can now determine if a binary is "*-apple-ios" or "*-apple-macosx" by checking the min OS and SDK load commands
- ArchSpec now says "<arch>-apple-macosx" is equivalent to "<arch>-apple-ios" since the simulator mixes and matches binaries (some from the system and most from the iOS SDK).
- Getting process inforamtion on MacOSX now correctly classifies iOS simulator processes so they have "*-apple-ios" architectures in the ProcessInstanceInfo
- PlatformiOSSimulator can now list iOS simulator processes correctly instead of showing nothing by using:
    (lldb) platform select ios-simulator
    (lldb) platform process list
- debugserver can now properly return "*-apple-ios" for the triple in the process info packets for iOS simulator executables
- GDBRemoteCommunicationClient now correctly passes along the triples it gets for process info by setting the OS in the llvm::Triple correctly

<rdar://problem/17060217>



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@209852 91177308-0d34-0410-b5e6-96231b3b80d8
Merge upstream llvm.org r209852 into dev-tfiala-native-protocol-linux-x86_64

Conflicts:
	test/tools/lldb-gdbserver/TestLldbGdbServer.py
Fix double default block compiler error.

This may have come in with the previous merge.