Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 1 | //===-- ThreadGDBRemote.cpp -------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | |
| 11 | #include "ThreadGDBRemote.h" |
| 12 | |
Jason Molenda | 3dc4f44 | 2013-10-18 05:55:24 +0000 | [diff] [blame] | 13 | #include "lldb/Breakpoint/Watchpoint.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 14 | #include "lldb/Core/ArchSpec.h" |
| 15 | #include "lldb/Core/DataExtractor.h" |
Jim Ingham | 0f16e73 | 2011-02-08 05:20:59 +0000 | [diff] [blame] | 16 | #include "lldb/Core/State.h" |
Jason Molenda | 3dc4f44 | 2013-10-18 05:55:24 +0000 | [diff] [blame] | 17 | #include "lldb/Core/StreamString.h" |
| 18 | #include "lldb/Target/Platform.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 19 | #include "lldb/Target/Process.h" |
| 20 | #include "lldb/Target/RegisterContext.h" |
Greg Clayton | f4b47e1 | 2010-08-04 01:40:35 +0000 | [diff] [blame] | 21 | #include "lldb/Target/StopInfo.h" |
Jason Molenda | 2fd8335 | 2014-02-05 05:44:54 +0000 | [diff] [blame] | 22 | #include "lldb/Target/SystemRuntime.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 23 | #include "lldb/Target/Target.h" |
Zachary Turner | 93749ab | 2015-03-03 21:51:25 +0000 | [diff] [blame] | 24 | #include "lldb/Target/UnixSignals.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 25 | #include "lldb/Target/Unwind.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 26 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 27 | #include "ProcessGDBRemote.h" |
| 28 | #include "ProcessGDBRemoteLog.h" |
Greg Clayton | c982c76 | 2010-07-09 20:39:50 +0000 | [diff] [blame] | 29 | #include "Utility/StringExtractorGDBRemote.h" |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 30 | |
| 31 | using namespace lldb; |
| 32 | using namespace lldb_private; |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 33 | using namespace lldb_private::process_gdb_remote; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 34 | |
| 35 | //---------------------------------------------------------------------- |
| 36 | // Thread Registers |
| 37 | //---------------------------------------------------------------------- |
| 38 | |
Jim Ingham | 4f465cf | 2012-10-10 18:32:14 +0000 | [diff] [blame] | 39 | ThreadGDBRemote::ThreadGDBRemote (Process &process, lldb::tid_t tid) : |
| 40 | Thread(process, tid), |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 41 | m_thread_name (), |
| 42 | m_dispatch_queue_name (), |
Jim Ingham | 7778703 | 2011-01-20 02:03:18 +0000 | [diff] [blame] | 43 | m_thread_dispatch_qaddr (LLDB_INVALID_ADDRESS) |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 44 | { |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 45 | ProcessGDBRemoteLog::LogIf(GDBR_LOG_THREAD, "%p: ThreadGDBRemote::ThreadGDBRemote (pid = %i, tid = 0x%4.4x)", |
| 46 | this, |
Jim Ingham | 4f465cf | 2012-10-10 18:32:14 +0000 | [diff] [blame] | 47 | process.GetID(), |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 48 | GetID()); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 49 | } |
| 50 | |
| 51 | ThreadGDBRemote::~ThreadGDBRemote () |
| 52 | { |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 53 | ProcessSP process_sp(GetProcess()); |
| 54 | ProcessGDBRemoteLog::LogIf(GDBR_LOG_THREAD, "%p: ThreadGDBRemote::~ThreadGDBRemote (pid = %i, tid = 0x%4.4x)", |
| 55 | this, |
| 56 | process_sp ? process_sp->GetID() : LLDB_INVALID_PROCESS_ID, |
| 57 | GetID()); |
Jim Ingham | 773d981 | 2010-11-18 02:47:07 +0000 | [diff] [blame] | 58 | DestroyThread(); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 59 | } |
| 60 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 61 | const char * |
| 62 | ThreadGDBRemote::GetName () |
| 63 | { |
| 64 | if (m_thread_name.empty()) |
| 65 | return NULL; |
| 66 | return m_thread_name.c_str(); |
| 67 | } |
| 68 | |
| 69 | |
| 70 | const char * |
| 71 | ThreadGDBRemote::GetQueueName () |
| 72 | { |
| 73 | // Always re-fetch the dispatch queue name since it can change |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 74 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 75 | if (m_thread_dispatch_qaddr != 0 || m_thread_dispatch_qaddr != LLDB_INVALID_ADDRESS) |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 76 | { |
| 77 | ProcessSP process_sp (GetProcess()); |
| 78 | if (process_sp) |
| 79 | { |
Jason Molenda | 2fd8335 | 2014-02-05 05:44:54 +0000 | [diff] [blame] | 80 | SystemRuntime *runtime = process_sp->GetSystemRuntime (); |
| 81 | if (runtime) |
Jason Molenda | 3dc4f44 | 2013-10-18 05:55:24 +0000 | [diff] [blame] | 82 | { |
Jason Molenda | 2fd8335 | 2014-02-05 05:44:54 +0000 | [diff] [blame] | 83 | m_dispatch_queue_name = runtime->GetQueueNameFromThreadQAddress (m_thread_dispatch_qaddr); |
Jason Molenda | 3dc4f44 | 2013-10-18 05:55:24 +0000 | [diff] [blame] | 84 | } |
| 85 | if (m_dispatch_queue_name.length() > 0) |
| 86 | { |
| 87 | return m_dispatch_queue_name.c_str(); |
| 88 | } |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 89 | } |
| 90 | } |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 91 | return NULL; |
| 92 | } |
| 93 | |
Jason Molenda | 3dc4f44 | 2013-10-18 05:55:24 +0000 | [diff] [blame] | 94 | queue_id_t |
| 95 | ThreadGDBRemote::GetQueueID () |
| 96 | { |
| 97 | if (m_thread_dispatch_qaddr != 0 || m_thread_dispatch_qaddr != LLDB_INVALID_ADDRESS) |
| 98 | { |
| 99 | ProcessSP process_sp (GetProcess()); |
| 100 | if (process_sp) |
| 101 | { |
Jason Molenda | 2fd8335 | 2014-02-05 05:44:54 +0000 | [diff] [blame] | 102 | SystemRuntime *runtime = process_sp->GetSystemRuntime (); |
| 103 | if (runtime) |
Jason Molenda | 3dc4f44 | 2013-10-18 05:55:24 +0000 | [diff] [blame] | 104 | { |
Jason Molenda | 2fd8335 | 2014-02-05 05:44:54 +0000 | [diff] [blame] | 105 | return runtime->GetQueueIDFromThreadQAddress (m_thread_dispatch_qaddr); |
Jason Molenda | 3dc4f44 | 2013-10-18 05:55:24 +0000 | [diff] [blame] | 106 | } |
| 107 | } |
| 108 | } |
| 109 | return LLDB_INVALID_QUEUE_ID; |
| 110 | } |
| 111 | |
Jason Molenda | b9ffa98 | 2014-04-25 00:01:15 +0000 | [diff] [blame] | 112 | QueueSP |
| 113 | ThreadGDBRemote::GetQueue () |
| 114 | { |
| 115 | queue_id_t queue_id = GetQueueID(); |
| 116 | QueueSP queue; |
| 117 | if (queue_id != LLDB_INVALID_QUEUE_ID) |
| 118 | { |
| 119 | ProcessSP process_sp (GetProcess()); |
| 120 | if (process_sp) |
| 121 | { |
| 122 | queue = process_sp->GetQueueList().FindQueueByID (queue_id); |
| 123 | } |
| 124 | } |
| 125 | return queue; |
| 126 | } |
| 127 | |
Jason Molenda | aac16e0 | 2014-03-13 02:54:54 +0000 | [diff] [blame] | 128 | addr_t |
| 129 | ThreadGDBRemote::GetQueueLibdispatchQueueAddress () |
| 130 | { |
| 131 | addr_t dispatch_queue_t_addr = LLDB_INVALID_ADDRESS; |
| 132 | if (m_thread_dispatch_qaddr != 0 || m_thread_dispatch_qaddr != LLDB_INVALID_ADDRESS) |
| 133 | { |
| 134 | ProcessSP process_sp (GetProcess()); |
| 135 | if (process_sp) |
| 136 | { |
| 137 | SystemRuntime *runtime = process_sp->GetSystemRuntime (); |
| 138 | if (runtime) |
| 139 | { |
| 140 | dispatch_queue_t_addr = runtime->GetLibdispatchQueueAddressFromThreadQAddress (m_thread_dispatch_qaddr); |
| 141 | } |
| 142 | } |
| 143 | } |
| 144 | return dispatch_queue_t_addr; |
| 145 | } |
| 146 | |
Jason Molenda | 705b180 | 2014-06-13 02:37:02 +0000 | [diff] [blame] | 147 | StructuredData::ObjectSP |
| 148 | ThreadGDBRemote::FetchThreadExtendedInfo () |
| 149 | { |
| 150 | StructuredData::ObjectSP object_sp; |
| 151 | const lldb::user_id_t tid = GetProtocolID(); |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 152 | Log *log(GetLogIfAnyCategoriesSet (GDBR_LOG_THREAD)); |
Jason Molenda | 705b180 | 2014-06-13 02:37:02 +0000 | [diff] [blame] | 153 | if (log) |
| 154 | log->Printf ("Fetching extended information for thread %4.4" PRIx64, tid); |
| 155 | ProcessSP process_sp (GetProcess()); |
| 156 | if (process_sp) |
| 157 | { |
| 158 | ProcessGDBRemote *gdb_process = static_cast<ProcessGDBRemote *>(process_sp.get()); |
| 159 | object_sp = gdb_process->GetExtendedInfoForThread (tid); |
| 160 | } |
| 161 | return object_sp; |
| 162 | } |
| 163 | |
Greg Clayton | 160c9d8 | 2013-05-01 21:54:04 +0000 | [diff] [blame] | 164 | void |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 165 | ThreadGDBRemote::WillResume (StateType resume_state) |
| 166 | { |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 167 | int signo = GetResumeSignal(); |
Greg Clayton | 160c9d8 | 2013-05-01 21:54:04 +0000 | [diff] [blame] | 168 | const lldb::user_id_t tid = GetProtocolID(); |
Tamas Berghammer | db264a6 | 2015-03-31 09:52:22 +0000 | [diff] [blame] | 169 | Log *log(GetLogIfAnyCategoriesSet (GDBR_LOG_THREAD)); |
Jim Ingham | 0f16e73 | 2011-02-08 05:20:59 +0000 | [diff] [blame] | 170 | if (log) |
Greg Clayton | 160c9d8 | 2013-05-01 21:54:04 +0000 | [diff] [blame] | 171 | log->Printf ("Resuming thread: %4.4" PRIx64 " with state: %s.", tid, StateAsCString(resume_state)); |
Greg Clayton | f4b47e1 | 2010-08-04 01:40:35 +0000 | [diff] [blame] | 172 | |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 173 | ProcessSP process_sp (GetProcess()); |
| 174 | if (process_sp) |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 175 | { |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 176 | ProcessGDBRemote *gdb_process = static_cast<ProcessGDBRemote *>(process_sp.get()); |
| 177 | switch (resume_state) |
| 178 | { |
| 179 | case eStateSuspended: |
| 180 | case eStateStopped: |
| 181 | // Don't append anything for threads that should stay stopped. |
| 182 | break; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 183 | |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 184 | case eStateRunning: |
| 185 | if (gdb_process->GetUnixSignals().SignalIsValid (signo)) |
Greg Clayton | 160c9d8 | 2013-05-01 21:54:04 +0000 | [diff] [blame] | 186 | gdb_process->m_continue_C_tids.push_back(std::make_pair(tid, signo)); |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 187 | else |
Greg Clayton | 160c9d8 | 2013-05-01 21:54:04 +0000 | [diff] [blame] | 188 | gdb_process->m_continue_c_tids.push_back(tid); |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 189 | break; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 190 | |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 191 | case eStateStepping: |
| 192 | if (gdb_process->GetUnixSignals().SignalIsValid (signo)) |
Greg Clayton | 160c9d8 | 2013-05-01 21:54:04 +0000 | [diff] [blame] | 193 | gdb_process->m_continue_S_tids.push_back(std::make_pair(tid, signo)); |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 194 | else |
Greg Clayton | 160c9d8 | 2013-05-01 21:54:04 +0000 | [diff] [blame] | 195 | gdb_process->m_continue_s_tids.push_back(tid); |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 196 | break; |
Greg Clayton | c982c76 | 2010-07-09 20:39:50 +0000 | [diff] [blame] | 197 | |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 198 | default: |
| 199 | break; |
| 200 | } |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 201 | } |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 202 | } |
| 203 | |
| 204 | void |
| 205 | ThreadGDBRemote::RefreshStateAfterStop() |
| 206 | { |
Greg Clayton | 3e06bd9 | 2011-01-09 21:07:35 +0000 | [diff] [blame] | 207 | // Invalidate all registers in our register context. We don't set "force" to |
| 208 | // true because the stop reply packet might have had some register values |
| 209 | // that were expedited and these will already be copied into the register |
| 210 | // context by the time this function gets called. The GDBRemoteRegisterContext |
| 211 | // class has been made smart enough to detect when it needs to invalidate |
| 212 | // which registers are valid by putting hooks in the register read and |
| 213 | // register supply functions where they check the process stop ID and do |
| 214 | // the right thing. |
| 215 | const bool force = false; |
| 216 | GetRegisterContext()->InvalidateIfNeeded (force); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 217 | } |
| 218 | |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 219 | bool |
| 220 | ThreadGDBRemote::ThreadIDIsValid (lldb::tid_t thread) |
| 221 | { |
| 222 | return thread != 0; |
| 223 | } |
| 224 | |
| 225 | void |
| 226 | ThreadGDBRemote::Dump(Log *log, uint32_t index) |
| 227 | { |
| 228 | } |
| 229 | |
| 230 | |
| 231 | bool |
| 232 | ThreadGDBRemote::ShouldStop (bool &step_more) |
| 233 | { |
| 234 | return true; |
| 235 | } |
Greg Clayton | 5ccbd29 | 2011-01-06 22:15:06 +0000 | [diff] [blame] | 236 | lldb::RegisterContextSP |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 237 | ThreadGDBRemote::GetRegisterContext () |
| 238 | { |
| 239 | if (m_reg_context_sp.get() == NULL) |
Greg Clayton | 5ccbd29 | 2011-01-06 22:15:06 +0000 | [diff] [blame] | 240 | m_reg_context_sp = CreateRegisterContextForFrame (NULL); |
| 241 | return m_reg_context_sp; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 242 | } |
| 243 | |
Greg Clayton | 5ccbd29 | 2011-01-06 22:15:06 +0000 | [diff] [blame] | 244 | lldb::RegisterContextSP |
Jason Molenda | b57e4a1 | 2013-11-04 09:33:30 +0000 | [diff] [blame] | 245 | ThreadGDBRemote::CreateRegisterContextForFrame (StackFrame *frame) |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 246 | { |
Greg Clayton | 5ccbd29 | 2011-01-06 22:15:06 +0000 | [diff] [blame] | 247 | lldb::RegisterContextSP reg_ctx_sp; |
Greg Clayton | 5ccbd29 | 2011-01-06 22:15:06 +0000 | [diff] [blame] | 248 | uint32_t concrete_frame_idx = 0; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 249 | |
| 250 | if (frame) |
Greg Clayton | 5ccbd29 | 2011-01-06 22:15:06 +0000 | [diff] [blame] | 251 | concrete_frame_idx = frame->GetConcreteFrameIndex (); |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 252 | |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 253 | |
Greg Clayton | 5ccbd29 | 2011-01-06 22:15:06 +0000 | [diff] [blame] | 254 | if (concrete_frame_idx == 0) |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 255 | { |
| 256 | ProcessSP process_sp (GetProcess()); |
| 257 | if (process_sp) |
| 258 | { |
| 259 | ProcessGDBRemote *gdb_process = static_cast<ProcessGDBRemote *>(process_sp.get()); |
Hafiz Abid Qadeer | 9a78cdf | 2013-08-29 09:09:45 +0000 | [diff] [blame] | 260 | // read_all_registers_at_once will be true if 'p' packet is not supported. |
Sean Callanan | b1de114 | 2013-09-04 23:24:15 +0000 | [diff] [blame] | 261 | bool read_all_registers_at_once = !gdb_process->GetGDBRemote().GetpPacketSupported (GetID()); |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 262 | reg_ctx_sp.reset (new GDBRemoteRegisterContext (*this, concrete_frame_idx, gdb_process->m_register_info, read_all_registers_at_once)); |
| 263 | } |
| 264 | } |
Greg Clayton | b3ae876 | 2013-04-12 20:07:46 +0000 | [diff] [blame] | 265 | else |
| 266 | { |
| 267 | Unwind *unwinder = GetUnwinder (); |
| 268 | if (unwinder) |
| 269 | reg_ctx_sp = unwinder->CreateRegisterContextForFrame (frame); |
| 270 | } |
Greg Clayton | 5ccbd29 | 2011-01-06 22:15:06 +0000 | [diff] [blame] | 271 | return reg_ctx_sp; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 272 | } |
| 273 | |
Greg Clayton | e576ab2 | 2011-02-15 00:19:15 +0000 | [diff] [blame] | 274 | bool |
Greg Clayton | 3e06bd9 | 2011-01-09 21:07:35 +0000 | [diff] [blame] | 275 | ThreadGDBRemote::PrivateSetRegisterValue (uint32_t reg, StringExtractor &response) |
| 276 | { |
| 277 | GDBRemoteRegisterContext *gdb_reg_ctx = static_cast<GDBRemoteRegisterContext *>(GetRegisterContext ().get()); |
| 278 | assert (gdb_reg_ctx); |
Greg Clayton | e576ab2 | 2011-02-15 00:19:15 +0000 | [diff] [blame] | 279 | return gdb_reg_ctx->PrivateSetRegisterValue (reg, response); |
Greg Clayton | 3e06bd9 | 2011-01-09 21:07:35 +0000 | [diff] [blame] | 280 | } |
| 281 | |
Greg Clayton | 6e0ff1a | 2013-05-09 01:55:29 +0000 | [diff] [blame] | 282 | bool |
| 283 | ThreadGDBRemote::CalculateStopInfo () |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 284 | { |
Greg Clayton | 1ac04c3 | 2012-02-21 00:09:25 +0000 | [diff] [blame] | 285 | ProcessSP process_sp (GetProcess()); |
| 286 | if (process_sp) |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 287 | { |
Greg Clayton | 6e0ff1a | 2013-05-09 01:55:29 +0000 | [diff] [blame] | 288 | StringExtractorGDBRemote stop_packet; |
| 289 | ProcessGDBRemote *gdb_process = static_cast<ProcessGDBRemote *>(process_sp.get()); |
| 290 | if (gdb_process->GetGDBRemote().GetThreadStopInfo(GetProtocolID(), stop_packet)) |
| 291 | return gdb_process->SetThreadStopInfo (stop_packet) == eStateStopped; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 292 | } |
Greg Clayton | 6e0ff1a | 2013-05-09 01:55:29 +0000 | [diff] [blame] | 293 | return false; |
Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 294 | } |
| 295 | |
| 296 | |