diff options
| author | Greg Clayton <gclayton@apple.com> | 2010-07-09 20:39:50 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2010-07-09 20:39:50 +0000 |
| commit | c982c768d248b21b82fbd70b61a4cc824cd82ddc (patch) | |
| tree | 68c5d417ce51994a2d393e5a5a7f0025b6e4ed35 /lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp | |
| parent | 2a5725b1a324639d0e16e9c125f5713acfabca60 (diff) | |
| download | llvm-c982c768d248b21b82fbd70b61a4cc824cd82ddc.zip llvm-c982c768d248b21b82fbd70b61a4cc824cd82ddc.tar.gz llvm-c982c768d248b21b82fbd70b61a4cc824cd82ddc.tar.bz2 | |
Merged Eli Friedman's linux build changes where he added Makefile files that
enabled LLVM make style building and made this compile LLDB on Mac OS X. We
can now iterate on this to make the build work on both linux and macosx.
llvm-svn: 108009
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp')
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp index 37485ed..4eae1e6 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ThreadGDBRemote.cpp @@ -22,7 +22,7 @@ #include "LibUnwindRegisterContext.h" #include "ProcessGDBRemote.h" #include "ProcessGDBRemoteLog.h" -#include "StringExtractorGDBRemote.h" +#include "Utility/StringExtractorGDBRemote.h" #include "UnwindLibUnwind.h" #include "UnwindMacOSXFrameBackchain.h" @@ -104,6 +104,9 @@ ThreadGDBRemote::WillResume (StateType resume_state) else GetGDBProcess().m_continue_packet.Printf(";s:%4.4x", GetID()); break; + + default: + break; } Thread::WillResume(resume_state); return true; @@ -272,8 +275,7 @@ ThreadGDBRemote::GetRawStopReason (StopInfo *stop_info) if (m_stop_info_stop_id != m_process.GetStopID()) { char packet[256]; - const int packet_len = snprintf(packet, sizeof(packet), "qThreadStopInfo%x", GetID()); - assert (packet_len < (sizeof(packet) - 1)); + ::snprintf(packet, sizeof(packet), "qThreadStopInfo%x", GetID()); StringExtractorGDBRemote stop_packet; if (GetGDBProcess().GetGDBRemote().SendPacketAndWaitForResponse(packet, stop_packet, 1, false)) { |
