blob: 71324a4e018049cbd0f0f4d23ec7e7abf97b3c83 [file] [log] [blame]
Todd Fialaaf245d12014-06-30 21:05:18 +00001//===-- NativeThreadLinux.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#include "NativeThreadLinux.h"
11
12#include <signal.h>
Chaoren Lin18fe6402015-02-03 01:51:47 +000013#include <sstream>
Todd Fialaaf245d12014-06-30 21:05:18 +000014
15#include "NativeProcessLinux.h"
Pavel Labath0f4b17d2015-08-24 13:25:54 +000016#include "NativeRegisterContextLinux.h"
Pavel Labath605b51b2016-02-23 13:56:30 +000017#include "SingleStepCheck.h"
Todd Fiala2850b1b2014-06-30 23:51:35 +000018
Todd Fialaaf245d12014-06-30 21:05:18 +000019#include "lldb/Core/State.h"
Zachary Turner39de3112014-09-09 20:54:56 +000020#include "lldb/Host/HostNativeThread.h"
Pavel Labath605b51b2016-02-23 13:56:30 +000021#include "lldb/Host/linux/Ptrace.h"
Pavel Labath225b7952017-03-17 09:51:23 +000022#include "lldb/Host/linux/Support.h"
Chaoren Linc16f5dc2015-03-19 23:28:10 +000023#include "lldb/Utility/LLDBAssert.h"
Zachary Turner6f9e6902017-03-03 20:56:28 +000024#include "lldb/Utility/Log.h"
Todd Fialaaf245d12014-06-30 21:05:18 +000025#include "lldb/lldb-enumerations.h"
Zachary Turner39de3112014-09-09 20:54:56 +000026
27#include "llvm/ADT/SmallString.h"
28
Chaoren Lin28e57422015-02-03 01:51:25 +000029#include "Plugins/Process/POSIX/CrashReason.h"
30
Pavel Labath8c8ff7a2015-05-11 10:03:10 +000031#include <sys/syscall.h>
32// Try to define a macro to encapsulate the tgkill syscall
Kate Stoneb9c1b512016-09-06 20:57:50 +000033#define tgkill(pid, tid, sig) \
34 syscall(__NR_tgkill, static_cast<::pid_t>(pid), static_cast<::pid_t>(tid), \
35 sig)
Pavel Labath8c8ff7a2015-05-11 10:03:10 +000036
Todd Fialaaf245d12014-06-30 21:05:18 +000037using namespace lldb;
38using namespace lldb_private;
Tamas Berghammerdb264a62015-03-31 09:52:22 +000039using namespace lldb_private::process_linux;
Todd Fialaaf245d12014-06-30 21:05:18 +000040
Kate Stoneb9c1b512016-09-06 20:57:50 +000041namespace {
42void LogThreadStopInfo(Log &log, const ThreadStopInfo &stop_info,
43 const char *const header) {
44 switch (stop_info.reason) {
45 case eStopReasonNone:
46 log.Printf("%s: %s no stop reason", __FUNCTION__, header);
47 return;
48 case eStopReasonTrace:
49 log.Printf("%s: %s trace, stopping signal 0x%" PRIx32, __FUNCTION__, header,
50 stop_info.details.signal.signo);
51 return;
52 case eStopReasonBreakpoint:
53 log.Printf("%s: %s breakpoint, stopping signal 0x%" PRIx32, __FUNCTION__,
54 header, stop_info.details.signal.signo);
55 return;
56 case eStopReasonWatchpoint:
57 log.Printf("%s: %s watchpoint, stopping signal 0x%" PRIx32, __FUNCTION__,
58 header, stop_info.details.signal.signo);
59 return;
60 case eStopReasonSignal:
61 log.Printf("%s: %s signal 0x%02" PRIx32, __FUNCTION__, header,
62 stop_info.details.signal.signo);
63 return;
64 case eStopReasonException:
65 log.Printf("%s: %s exception type 0x%02" PRIx64, __FUNCTION__, header,
66 stop_info.details.exception.type);
67 return;
68 case eStopReasonExec:
69 log.Printf("%s: %s exec, stopping signal 0x%" PRIx32, __FUNCTION__, header,
70 stop_info.details.signal.signo);
71 return;
72 case eStopReasonPlanComplete:
73 log.Printf("%s: %s plan complete", __FUNCTION__, header);
74 return;
75 case eStopReasonThreadExiting:
76 log.Printf("%s: %s thread exiting", __FUNCTION__, header);
77 return;
78 case eStopReasonInstrumentation:
79 log.Printf("%s: %s instrumentation", __FUNCTION__, header);
80 return;
81 default:
82 log.Printf("%s: %s invalid stop reason %" PRIu32, __FUNCTION__, header,
83 static_cast<uint32_t>(stop_info.reason));
84 }
85}
Todd Fialaaf245d12014-06-30 21:05:18 +000086}
87
Pavel Labath82abefa2017-07-18 09:24:48 +000088NativeThreadLinux::NativeThreadLinux(NativeProcessLinux &process,
Kate Stoneb9c1b512016-09-06 20:57:50 +000089 lldb::tid_t tid)
90 : NativeThreadProtocol(process, tid), m_state(StateType::eStateInvalid),
91 m_stop_info(), m_reg_context_sp(), m_stop_description() {}
92
93std::string NativeThreadLinux::GetName() {
Pavel Labath225b7952017-03-17 09:51:23 +000094 NativeProcessLinux &process = GetProcess();
Kate Stoneb9c1b512016-09-06 20:57:50 +000095
Pavel Labath225b7952017-03-17 09:51:23 +000096 auto BufferOrError = getProcFile(process.GetID(), GetID(), "comm");
97 if (!BufferOrError)
98 return "";
99 return BufferOrError.get()->getBuffer().rtrim('\n');
Todd Fialaaf245d12014-06-30 21:05:18 +0000100}
101
Kate Stoneb9c1b512016-09-06 20:57:50 +0000102lldb::StateType NativeThreadLinux::GetState() { return m_state; }
Todd Fialaaf245d12014-06-30 21:05:18 +0000103
Kate Stoneb9c1b512016-09-06 20:57:50 +0000104bool NativeThreadLinux::GetStopReason(ThreadStopInfo &stop_info,
105 std::string &description) {
106 Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
Todd Fialaaf245d12014-06-30 21:05:18 +0000107
Kate Stoneb9c1b512016-09-06 20:57:50 +0000108 description.clear();
Todd Fialaaf245d12014-06-30 21:05:18 +0000109
Kate Stoneb9c1b512016-09-06 20:57:50 +0000110 switch (m_state) {
111 case eStateStopped:
112 case eStateCrashed:
113 case eStateExited:
114 case eStateSuspended:
115 case eStateUnloaded:
Todd Fialaaf245d12014-06-30 21:05:18 +0000116 if (log)
Kate Stoneb9c1b512016-09-06 20:57:50 +0000117 LogThreadStopInfo(*log, m_stop_info, "m_stop_info in thread:");
118 stop_info = m_stop_info;
119 description = m_stop_description;
120 if (log)
121 LogThreadStopInfo(*log, stop_info, "returned stop_info:");
Todd Fialaaf245d12014-06-30 21:05:18 +0000122
Todd Fiala511e5cd2014-09-11 23:29:14 +0000123 return true;
Kate Stoneb9c1b512016-09-06 20:57:50 +0000124
125 case eStateInvalid:
126 case eStateConnected:
127 case eStateAttaching:
128 case eStateLaunching:
129 case eStateRunning:
130 case eStateStepping:
131 case eStateDetached:
132 if (log) {
133 log->Printf("NativeThreadLinux::%s tid %" PRIu64
134 " in state %s cannot answer stop reason",
135 __FUNCTION__, GetID(), StateAsCString(m_state));
136 }
137 return false;
138 }
139 llvm_unreachable("unhandled StateType!");
Todd Fiala511e5cd2014-09-11 23:29:14 +0000140}
141
Kate Stoneb9c1b512016-09-06 20:57:50 +0000142NativeRegisterContextSP NativeThreadLinux::GetRegisterContext() {
143 // Return the register context if we already created it.
144 if (m_reg_context_sp)
145 return m_reg_context_sp;
Pavel Labath605b51b2016-02-23 13:56:30 +0000146
Kate Stoneb9c1b512016-09-06 20:57:50 +0000147 const uint32_t concrete_frame_idx = 0;
148 m_reg_context_sp.reset(
149 NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux(
Pavel Labath578a4252017-11-09 10:43:16 +0000150 m_process.GetArchitecture(), *this, concrete_frame_idx));
Kate Stoneb9c1b512016-09-06 20:57:50 +0000151
152 return m_reg_context_sp;
Pavel Labath605b51b2016-02-23 13:56:30 +0000153}
Todd Fiala511e5cd2014-09-11 23:29:14 +0000154
Zachary Turner97206d52017-05-12 04:51:55 +0000155Status NativeThreadLinux::SetWatchpoint(lldb::addr_t addr, size_t size,
156 uint32_t watch_flags, bool hardware) {
Kate Stoneb9c1b512016-09-06 20:57:50 +0000157 if (!hardware)
Zachary Turner97206d52017-05-12 04:51:55 +0000158 return Status("not implemented");
Kate Stoneb9c1b512016-09-06 20:57:50 +0000159 if (m_state == eStateLaunching)
Zachary Turner97206d52017-05-12 04:51:55 +0000160 return Status();
161 Status error = RemoveWatchpoint(addr);
Kate Stoneb9c1b512016-09-06 20:57:50 +0000162 if (error.Fail())
163 return error;
164 NativeRegisterContextSP reg_ctx = GetRegisterContext();
165 uint32_t wp_index = reg_ctx->SetHardwareWatchpoint(addr, size, watch_flags);
166 if (wp_index == LLDB_INVALID_INDEX32)
Zachary Turner97206d52017-05-12 04:51:55 +0000167 return Status("Setting hardware watchpoint failed.");
Kate Stoneb9c1b512016-09-06 20:57:50 +0000168 m_watchpoint_index_map.insert({addr, wp_index});
Zachary Turner97206d52017-05-12 04:51:55 +0000169 return Status();
Todd Fialaa9882ce2014-08-28 15:46:54 +0000170}
171
Zachary Turner97206d52017-05-12 04:51:55 +0000172Status NativeThreadLinux::RemoveWatchpoint(lldb::addr_t addr) {
Kate Stoneb9c1b512016-09-06 20:57:50 +0000173 auto wp = m_watchpoint_index_map.find(addr);
174 if (wp == m_watchpoint_index_map.end())
Zachary Turner97206d52017-05-12 04:51:55 +0000175 return Status();
Kate Stoneb9c1b512016-09-06 20:57:50 +0000176 uint32_t wp_index = wp->second;
177 m_watchpoint_index_map.erase(wp);
178 if (GetRegisterContext()->ClearHardwareWatchpoint(wp_index))
Zachary Turner97206d52017-05-12 04:51:55 +0000179 return Status();
180 return Status("Clearing hardware watchpoint failed.");
Chaoren Lin18fe6402015-02-03 01:51:47 +0000181}
182
Zachary Turner97206d52017-05-12 04:51:55 +0000183Status NativeThreadLinux::SetHardwareBreakpoint(lldb::addr_t addr,
184 size_t size) {
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000185 if (m_state == eStateLaunching)
Zachary Turner97206d52017-05-12 04:51:55 +0000186 return Status();
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000187
Zachary Turner97206d52017-05-12 04:51:55 +0000188 Status error = RemoveHardwareBreakpoint(addr);
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000189 if (error.Fail())
190 return error;
191
192 NativeRegisterContextSP reg_ctx = GetRegisterContext();
193 uint32_t bp_index = reg_ctx->SetHardwareBreakpoint(addr, size);
194
195 if (bp_index == LLDB_INVALID_INDEX32)
Zachary Turner97206d52017-05-12 04:51:55 +0000196 return Status("Setting hardware breakpoint failed.");
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000197
198 m_hw_break_index_map.insert({addr, bp_index});
Zachary Turner97206d52017-05-12 04:51:55 +0000199 return Status();
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000200}
201
Zachary Turner97206d52017-05-12 04:51:55 +0000202Status NativeThreadLinux::RemoveHardwareBreakpoint(lldb::addr_t addr) {
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000203 auto bp = m_hw_break_index_map.find(addr);
204 if (bp == m_hw_break_index_map.end())
Zachary Turner97206d52017-05-12 04:51:55 +0000205 return Status();
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000206
207 uint32_t bp_index = bp->second;
208 if (GetRegisterContext()->ClearHardwareBreakpoint(bp_index)) {
209 m_hw_break_index_map.erase(bp);
Zachary Turner97206d52017-05-12 04:51:55 +0000210 return Status();
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000211 }
212
Zachary Turner97206d52017-05-12 04:51:55 +0000213 return Status("Clearing hardware breakpoint failed.");
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000214}
215
Zachary Turner97206d52017-05-12 04:51:55 +0000216Status NativeThreadLinux::Resume(uint32_t signo) {
Kate Stoneb9c1b512016-09-06 20:57:50 +0000217 const StateType new_state = StateType::eStateRunning;
218 MaybeLogStateChange(new_state);
219 m_state = new_state;
Tamas Berghammereadb2a92015-03-17 14:40:57 +0000220
Kate Stoneb9c1b512016-09-06 20:57:50 +0000221 m_stop_info.reason = StopReason::eStopReasonNone;
222 m_stop_description.clear();
Tamas Berghammereadb2a92015-03-17 14:40:57 +0000223
Kate Stoneb9c1b512016-09-06 20:57:50 +0000224 // If watchpoints have been set, but none on this thread,
225 // then this is a new thread. So set all existing watchpoints.
226 if (m_watchpoint_index_map.empty()) {
Pavel Labath605b51b2016-02-23 13:56:30 +0000227 NativeProcessLinux &process = GetProcess();
Pavel Labath8c8ff7a2015-05-11 10:03:10 +0000228
Kate Stoneb9c1b512016-09-06 20:57:50 +0000229 const auto &watchpoint_map = process.GetWatchpointMap();
230 GetRegisterContext()->ClearAllHardwareWatchpoints();
231 for (const auto &pair : watchpoint_map) {
232 const auto &wp = pair.second;
233 SetWatchpoint(wp.m_addr, wp.m_size, wp.m_watch_flags, wp.m_hardware);
Pavel Labath8c8ff7a2015-05-11 10:03:10 +0000234 }
Kate Stoneb9c1b512016-09-06 20:57:50 +0000235 }
Pavel Labath8c8ff7a2015-05-11 10:03:10 +0000236
Omair Javaidd5ffbad2017-02-24 13:27:31 +0000237 // Set all active hardware breakpoint on all threads.
238 if (m_hw_break_index_map.empty()) {
239 NativeProcessLinux &process = GetProcess();
240
241 const auto &hw_breakpoint_map = process.GetHardwareBreakpointMap();
242 GetRegisterContext()->ClearAllHardwareBreakpoints();
243 for (const auto &pair : hw_breakpoint_map) {
244 const auto &bp = pair.second;
245 SetHardwareBreakpoint(bp.m_addr, bp.m_size);
246 }
247 }
248
Kate Stoneb9c1b512016-09-06 20:57:50 +0000249 intptr_t data = 0;
250
251 if (signo != LLDB_INVALID_SIGNAL_NUMBER)
252 data = signo;
253
254 return NativeProcessLinux::PtraceWrapper(PTRACE_CONT, GetID(), nullptr,
255 reinterpret_cast<void *>(data));
Pavel Labath8c8ff7a2015-05-11 10:03:10 +0000256}
257
Zachary Turner97206d52017-05-12 04:51:55 +0000258Status NativeThreadLinux::SingleStep(uint32_t signo) {
Kate Stoneb9c1b512016-09-06 20:57:50 +0000259 const StateType new_state = StateType::eStateStepping;
260 MaybeLogStateChange(new_state);
261 m_state = new_state;
262 m_stop_info.reason = StopReason::eStopReasonNone;
Pavel Labatha37bbbd2017-02-17 11:48:34 +0000263
264 if(!m_step_workaround) {
265 // If we already hava a workaround inplace, don't reset it. Otherwise, the
266 // destructor of the existing instance will run after the new instance has
267 // fetched the cpu mask, and the thread will end up with the wrong mask.
268 m_step_workaround = SingleStepWorkaround::Get(m_tid);
269 }
Kate Stoneb9c1b512016-09-06 20:57:50 +0000270
271 intptr_t data = 0;
272 if (signo != LLDB_INVALID_SIGNAL_NUMBER)
273 data = signo;
274
275 // If hardware single-stepping is not supported, we just do a continue. The
276 // breakpoint on the
277 // next instruction has been setup in NativeProcessLinux::Resume.
278 return NativeProcessLinux::PtraceWrapper(
279 GetProcess().SupportHardwareSingleStepping() ? PTRACE_SINGLESTEP
280 : PTRACE_CONT,
281 m_tid, nullptr, reinterpret_cast<void *>(data));
282}
283
284void NativeThreadLinux::SetStoppedBySignal(uint32_t signo,
285 const siginfo_t *info) {
286 Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
287 if (log)
288 log->Printf("NativeThreadLinux::%s called with signal 0x%02" PRIx32,
289 __FUNCTION__, signo);
290
291 SetStopped();
292
293 m_stop_info.reason = StopReason::eStopReasonSignal;
294 m_stop_info.details.signal.signo = signo;
295
296 m_stop_description.clear();
297 if (info) {
298 switch (signo) {
299 case SIGSEGV:
300 case SIGBUS:
301 case SIGFPE:
302 case SIGILL:
303 // In case of MIPS64 target, SI_KERNEL is generated for invalid 64bit
304 // address.
305 const auto reason =
306 (info->si_signo == SIGBUS && info->si_code == SI_KERNEL)
307 ? CrashReason::eInvalidAddress
308 : GetCrashReason(*info);
Valentina Giusti6f8c1f82016-10-06 18:05:12 +0000309 m_stop_description = GetCrashReasonString(reason, *info);
Kate Stoneb9c1b512016-09-06 20:57:50 +0000310 break;
311 }
312 }
313}
314
315bool NativeThreadLinux::IsStopped(int *signo) {
316 if (!StateIsStoppedState(m_state, false))
317 return false;
318
319 // If we are stopped by a signal, return the signo.
320 if (signo && m_state == StateType::eStateStopped &&
321 m_stop_info.reason == StopReason::eStopReasonSignal) {
322 *signo = m_stop_info.details.signal.signo;
323 }
324
325 // Regardless, we are stopped.
326 return true;
327}
328
329void NativeThreadLinux::SetStopped() {
330 if (m_state == StateType::eStateStepping)
Pavel Labath8abd34f2017-01-25 11:19:45 +0000331 m_step_workaround.reset();
Kate Stoneb9c1b512016-09-06 20:57:50 +0000332
333 const StateType new_state = StateType::eStateStopped;
334 MaybeLogStateChange(new_state);
335 m_state = new_state;
336 m_stop_description.clear();
337}
338
339void NativeThreadLinux::SetStoppedByExec() {
340 Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
341 if (log)
342 log->Printf("NativeThreadLinux::%s()", __FUNCTION__);
343
344 SetStopped();
345
346 m_stop_info.reason = StopReason::eStopReasonExec;
347 m_stop_info.details.signal.signo = SIGSTOP;
348}
349
350void NativeThreadLinux::SetStoppedByBreakpoint() {
351 SetStopped();
352
353 m_stop_info.reason = StopReason::eStopReasonBreakpoint;
354 m_stop_info.details.signal.signo = SIGTRAP;
355 m_stop_description.clear();
356}
357
358void NativeThreadLinux::SetStoppedByWatchpoint(uint32_t wp_index) {
359 SetStopped();
360
361 lldbassert(wp_index != LLDB_INVALID_INDEX32 && "wp_index cannot be invalid");
362
363 std::ostringstream ostr;
364 ostr << GetRegisterContext()->GetWatchpointAddress(wp_index) << " ";
365 ostr << wp_index;
366
367 /*
368 * MIPS: Last 3bits of the watchpoint address are masked by the kernel. For
369 * example:
370 * 'n' is at 0x120010d00 and 'm' is 0x120010d04. When a watchpoint is set at
371 * 'm', then
372 * watch exception is generated even when 'n' is read/written. To handle this
373 * case,
374 * find the base address of the load/store instruction and append it in the
375 * stop-info
376 * packet.
377 */
378 ostr << " " << GetRegisterContext()->GetWatchpointHitAddress(wp_index);
379
380 m_stop_description = ostr.str();
381
382 m_stop_info.reason = StopReason::eStopReasonWatchpoint;
383 m_stop_info.details.signal.signo = SIGTRAP;
384}
385
386bool NativeThreadLinux::IsStoppedAtBreakpoint() {
387 return GetState() == StateType::eStateStopped &&
388 m_stop_info.reason == StopReason::eStopReasonBreakpoint;
389}
390
391bool NativeThreadLinux::IsStoppedAtWatchpoint() {
392 return GetState() == StateType::eStateStopped &&
393 m_stop_info.reason == StopReason::eStopReasonWatchpoint;
394}
395
396void NativeThreadLinux::SetStoppedByTrace() {
397 SetStopped();
398
399 m_stop_info.reason = StopReason::eStopReasonTrace;
400 m_stop_info.details.signal.signo = SIGTRAP;
401}
402
403void NativeThreadLinux::SetStoppedWithNoReason() {
404 SetStopped();
405
406 m_stop_info.reason = StopReason::eStopReasonNone;
407 m_stop_info.details.signal.signo = 0;
408}
409
410void NativeThreadLinux::SetExited() {
411 const StateType new_state = StateType::eStateExited;
412 MaybeLogStateChange(new_state);
413 m_state = new_state;
414
415 m_stop_info.reason = StopReason::eStopReasonThreadExiting;
416}
417
Zachary Turner97206d52017-05-12 04:51:55 +0000418Status NativeThreadLinux::RequestStop() {
Kate Stoneb9c1b512016-09-06 20:57:50 +0000419 Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
420
421 NativeProcessLinux &process = GetProcess();
422
423 lldb::pid_t pid = process.GetID();
424 lldb::tid_t tid = GetID();
425
426 if (log)
427 log->Printf("NativeThreadLinux::%s requesting thread stop(pid: %" PRIu64
428 ", tid: %" PRIu64 ")",
429 __FUNCTION__, pid, tid);
430
Zachary Turner97206d52017-05-12 04:51:55 +0000431 Status err;
Kate Stoneb9c1b512016-09-06 20:57:50 +0000432 errno = 0;
433 if (::tgkill(pid, tid, SIGSTOP) != 0) {
434 err.SetErrorToErrno();
435 if (log)
436 log->Printf("NativeThreadLinux::%s tgkill(%" PRIu64 ", %" PRIu64
437 ", SIGSTOP) failed: %s",
438 __FUNCTION__, pid, tid, err.AsCString());
439 }
440
441 return err;
442}
443
444void NativeThreadLinux::MaybeLogStateChange(lldb::StateType new_state) {
445 Log *log(GetLogIfAllCategoriesSet(LIBLLDB_LOG_THREAD));
446 // If we're not logging, we're done.
447 if (!log)
448 return;
449
450 // If this is a state change to the same state, we're done.
451 lldb::StateType old_state = m_state;
452 if (new_state == old_state)
453 return;
454
Pavel Labath82abefa2017-07-18 09:24:48 +0000455 LLDB_LOG(log, "pid={0}, tid={1}: changing from state {2} to {3}",
456 m_process.GetID(), GetID(), old_state, new_state);
Kate Stoneb9c1b512016-09-06 20:57:50 +0000457}
458
459NativeProcessLinux &NativeThreadLinux::GetProcess() {
Pavel Labath82abefa2017-07-18 09:24:48 +0000460 return static_cast<NativeProcessLinux &>(m_process);
Pavel Labath605b51b2016-02-23 13:56:30 +0000461}