1af245d11STodd Fiala //===-- NativeProcessLinux.h ---------------------------------- -*- C++ -*-===//
2af245d11STodd Fiala //
3af245d11STodd Fiala //                     The LLVM Compiler Infrastructure
4af245d11STodd Fiala //
5af245d11STodd Fiala // This file is distributed under the University of Illinois Open Source
6af245d11STodd Fiala // License. See LICENSE.TXT for details.
7af245d11STodd Fiala //
8af245d11STodd Fiala //===----------------------------------------------------------------------===//
9af245d11STodd Fiala 
10af245d11STodd Fiala #ifndef liblldb_NativeProcessLinux_H_
11af245d11STodd Fiala #define liblldb_NativeProcessLinux_H_
12af245d11STodd Fiala 
13af245d11STodd Fiala // C++ Includes
14af245d11STodd Fiala #include <unordered_set>
15af245d11STodd Fiala 
16af245d11STodd Fiala // Other libraries and framework includes
17af245d11STodd Fiala #include "lldb/Core/ArchSpec.h"
18af245d11STodd Fiala #include "lldb/lldb-types.h"
19af245d11STodd Fiala #include "lldb/Host/Debug.h"
20d3173f34SChaoren Lin #include "lldb/Host/FileSpec.h"
2139de3110SZachary Turner #include "lldb/Host/HostThread.h"
22af245d11STodd Fiala #include "lldb/Host/Mutex.h"
23af245d11STodd Fiala #include "lldb/Target/MemoryRegionInfo.h"
24af245d11STodd Fiala 
252fe1d0abSChaoren Lin #include "lldb/Host/common/NativeProcessProtocol.h"
268c8ff7afSPavel Labath #include "NativeThreadLinux.h"
27af245d11STodd Fiala 
28db264a6dSTamas Berghammer namespace lldb_private {
29af245d11STodd Fiala     class Error;
30af245d11STodd Fiala     class Module;
31af245d11STodd Fiala     class Scalar;
32af245d11STodd Fiala 
33db264a6dSTamas Berghammer namespace process_linux {
34af245d11STodd Fiala     /// @class NativeProcessLinux
35af245d11STodd Fiala     /// @brief Manages communication with the inferior (debugee) process.
36af245d11STodd Fiala     ///
37af245d11STodd Fiala     /// Upon construction, this class prepares and launches an inferior process for
38af245d11STodd Fiala     /// debugging.
39af245d11STodd Fiala     ///
40af245d11STodd Fiala     /// Changes in the inferior process state are broadcasted.
41af245d11STodd Fiala     class NativeProcessLinux: public NativeProcessProtocol
42af245d11STodd Fiala     {
43af245d11STodd Fiala     public:
44af245d11STodd Fiala 
45db264a6dSTamas Berghammer         static Error
46af245d11STodd Fiala         LaunchProcess (
47af245d11STodd Fiala             Module *exe_module,
48af245d11STodd Fiala             ProcessLaunchInfo &launch_info,
49db264a6dSTamas Berghammer             NativeProcessProtocol::NativeDelegate &native_delegate,
50af245d11STodd Fiala             NativeProcessProtocolSP &native_process_sp);
51af245d11STodd Fiala 
52db264a6dSTamas Berghammer         static Error
53af245d11STodd Fiala         AttachToProcess (
54af245d11STodd Fiala             lldb::pid_t pid,
55db264a6dSTamas Berghammer             NativeProcessProtocol::NativeDelegate &native_delegate,
56af245d11STodd Fiala             NativeProcessProtocolSP &native_process_sp);
57af245d11STodd Fiala 
58068f8a7eSTamas Berghammer         //------------------------------------------------------------------------------
59068f8a7eSTamas Berghammer         /// @class Operation
60068f8a7eSTamas Berghammer         /// @brief Represents a NativeProcessLinux operation.
61068f8a7eSTamas Berghammer         ///
62068f8a7eSTamas Berghammer         /// Under Linux, it is not possible to ptrace() from any other thread but the
63068f8a7eSTamas Berghammer         /// one that spawned or attached to the process from the start.  Therefore, when
64068f8a7eSTamas Berghammer         /// a NativeProcessLinux is asked to deliver or change the state of an inferior
65068f8a7eSTamas Berghammer         /// process the operation must be "funneled" to a specific thread to perform the
66068f8a7eSTamas Berghammer         /// task.  The Operation class provides an abstract base for all services the
67068f8a7eSTamas Berghammer         /// NativeProcessLinux must perform via the single virtual function Execute, thus
68068f8a7eSTamas Berghammer         /// encapsulating the code that needs to run in the privileged context.
69068f8a7eSTamas Berghammer         class Operation
70068f8a7eSTamas Berghammer         {
71068f8a7eSTamas Berghammer         public:
72068f8a7eSTamas Berghammer             Operation () : m_error() { }
73068f8a7eSTamas Berghammer 
74068f8a7eSTamas Berghammer             virtual
75068f8a7eSTamas Berghammer             ~Operation() {}
76068f8a7eSTamas Berghammer 
77068f8a7eSTamas Berghammer             virtual void
78068f8a7eSTamas Berghammer             Execute (NativeProcessLinux *process) = 0;
79068f8a7eSTamas Berghammer 
80068f8a7eSTamas Berghammer             const Error &
81068f8a7eSTamas Berghammer             GetError () const { return m_error; }
82068f8a7eSTamas Berghammer 
83068f8a7eSTamas Berghammer         protected:
84068f8a7eSTamas Berghammer             Error m_error;
85068f8a7eSTamas Berghammer         };
86068f8a7eSTamas Berghammer 
87068f8a7eSTamas Berghammer         typedef std::unique_ptr<Operation> OperationUP;
88068f8a7eSTamas Berghammer 
89af245d11STodd Fiala         // ---------------------------------------------------------------------
90af245d11STodd Fiala         // NativeProcessProtocol Interface
91af245d11STodd Fiala         // ---------------------------------------------------------------------
92af245d11STodd Fiala         Error
93af245d11STodd Fiala         Resume (const ResumeActionList &resume_actions) override;
94af245d11STodd Fiala 
95af245d11STodd Fiala         Error
96af245d11STodd Fiala         Halt () override;
97af245d11STodd Fiala 
98af245d11STodd Fiala         Error
99af245d11STodd Fiala         Detach () override;
100af245d11STodd Fiala 
101af245d11STodd Fiala         Error
102af245d11STodd Fiala         Signal (int signo) override;
103af245d11STodd Fiala 
104af245d11STodd Fiala         Error
105e9547b80SChaoren Lin         Interrupt () override;
106e9547b80SChaoren Lin 
107e9547b80SChaoren Lin         Error
108af245d11STodd Fiala         Kill () override;
109af245d11STodd Fiala 
110af245d11STodd Fiala         Error
111af245d11STodd Fiala         GetMemoryRegionInfo (lldb::addr_t load_addr, MemoryRegionInfo &range_info) override;
112af245d11STodd Fiala 
113af245d11STodd Fiala         Error
1143eb4b458SChaoren Lin         ReadMemory(lldb::addr_t addr, void *buf, size_t size, size_t &bytes_read) override;
115af245d11STodd Fiala 
116af245d11STodd Fiala         Error
1173eb4b458SChaoren Lin         ReadMemoryWithoutTrap(lldb::addr_t addr, void *buf, size_t size, size_t &bytes_read) override;
118af245d11STodd Fiala 
119af245d11STodd Fiala         Error
1203eb4b458SChaoren Lin         WriteMemory(lldb::addr_t addr, const void *buf, size_t size, size_t &bytes_written) override;
1213eb4b458SChaoren Lin 
1223eb4b458SChaoren Lin         Error
1233eb4b458SChaoren Lin         AllocateMemory(size_t size, uint32_t permissions, lldb::addr_t &addr) override;
124af245d11STodd Fiala 
125af245d11STodd Fiala         Error
126af245d11STodd Fiala         DeallocateMemory (lldb::addr_t addr) override;
127af245d11STodd Fiala 
128af245d11STodd Fiala         lldb::addr_t
129af245d11STodd Fiala         GetSharedLibraryInfoAddress () override;
130af245d11STodd Fiala 
131af245d11STodd Fiala         size_t
132af245d11STodd Fiala         UpdateThreads () override;
133af245d11STodd Fiala 
134af245d11STodd Fiala         bool
135af245d11STodd Fiala         GetArchitecture (ArchSpec &arch) const override;
136af245d11STodd Fiala 
137af245d11STodd Fiala         Error
138af245d11STodd Fiala         SetBreakpoint (lldb::addr_t addr, uint32_t size, bool hardware) override;
139af245d11STodd Fiala 
14045f5cb31SPavel Labath         Error
14145f5cb31SPavel Labath         SetWatchpoint (lldb::addr_t addr, size_t size, uint32_t watch_flags, bool hardware) override;
14245f5cb31SPavel Labath 
14345f5cb31SPavel Labath         Error
14445f5cb31SPavel Labath         RemoveWatchpoint (lldb::addr_t addr) override;
14545f5cb31SPavel Labath 
146af245d11STodd Fiala         void
147af245d11STodd Fiala         DoStopIDBumped (uint32_t newBumpId) override;
148af245d11STodd Fiala 
1498bc34f4dSOleksiy Vyalov         void
1508bc34f4dSOleksiy Vyalov         Terminate () override;
1518bc34f4dSOleksiy Vyalov 
152068f8a7eSTamas Berghammer         Error
153068f8a7eSTamas Berghammer         GetLoadedModuleFileSpec(const char* module_path, FileSpec& file_spec) override;
154068f8a7eSTamas Berghammer 
155*783bfc8cSTamas Berghammer         Error
156*783bfc8cSTamas Berghammer         GetFileLoadAddress(const llvm::StringRef& file_name, lldb::addr_t& load_addr) override;
157*783bfc8cSTamas Berghammer 
158af245d11STodd Fiala         // ---------------------------------------------------------------------
159af245d11STodd Fiala         // Interface used by NativeRegisterContext-derived classes.
160af245d11STodd Fiala         // ---------------------------------------------------------------------
16197ccc294SChaoren Lin         Error
162068f8a7eSTamas Berghammer         DoOperation(Operation* op);
163af245d11STodd Fiala 
1647cb18bf5STamas Berghammer         Error
165068f8a7eSTamas Berghammer         DoOperation(OperationUP op) { return DoOperation(op.get()); }
166068f8a7eSTamas Berghammer 
167068f8a7eSTamas Berghammer         static long
168068f8a7eSTamas Berghammer         PtraceWrapper(int req, lldb::pid_t pid, void *addr, void *data, size_t data_size, Error& error);
1697cb18bf5STamas Berghammer 
170af245d11STodd Fiala     protected:
171af245d11STodd Fiala         // ---------------------------------------------------------------------
172af245d11STodd Fiala         // NativeProcessProtocol protected interface
173af245d11STodd Fiala         // ---------------------------------------------------------------------
174af245d11STodd Fiala         Error
175af245d11STodd Fiala         GetSoftwareBreakpointTrapOpcode (size_t trap_opcode_size_hint, size_t &actual_opcode_size, const uint8_t *&trap_opcode_bytes) override;
176af245d11STodd Fiala 
177af245d11STodd Fiala     private:
178af245d11STodd Fiala 
1791107b5a5SPavel Labath         class Monitor;
1801107b5a5SPavel Labath 
181db264a6dSTamas Berghammer         ArchSpec m_arch;
182af245d11STodd Fiala 
1831107b5a5SPavel Labath         std::unique_ptr<Monitor> m_monitor_up;
184af245d11STodd Fiala 
185db264a6dSTamas Berghammer         LazyBool m_supports_mem_region;
186af245d11STodd Fiala         std::vector<MemoryRegionInfo> m_mem_region_cache;
187db264a6dSTamas Berghammer         Mutex m_mem_region_cache_mutex;
188af245d11STodd Fiala 
189d8c338d4STamas Berghammer         // List of thread ids stepping with a breakpoint with the address of
190d8c338d4STamas Berghammer         // the relevan breakpoint
191d8c338d4STamas Berghammer         std::map<lldb::tid_t, lldb::addr_t> m_threads_stepping_with_breakpoint;
192d8c338d4STamas Berghammer 
193af245d11STodd Fiala         /// @class LauchArgs
194af245d11STodd Fiala         ///
195af245d11STodd Fiala         /// @brief Simple structure to pass data to the thread responsible for
196af245d11STodd Fiala         /// launching a child process.
197bd7cbc5aSPavel Labath         struct LaunchArgs
198af245d11STodd Fiala         {
199bd7cbc5aSPavel Labath             LaunchArgs(Module *module,
200af245d11STodd Fiala                     char const **argv,
201af245d11STodd Fiala                     char const **envp,
202d3173f34SChaoren Lin                     const FileSpec &stdin_file_spec,
203d3173f34SChaoren Lin                     const FileSpec &stdout_file_spec,
204d3173f34SChaoren Lin                     const FileSpec &stderr_file_spec,
205d3173f34SChaoren Lin                     const FileSpec &working_dir,
206db264a6dSTamas Berghammer                     const ProcessLaunchInfo &launch_info);
207af245d11STodd Fiala 
208af245d11STodd Fiala             ~LaunchArgs();
209af245d11STodd Fiala 
210db264a6dSTamas Berghammer             Module *m_module;                  // The executable image to launch.
211af245d11STodd Fiala             char const **m_argv;               // Process arguments.
212af245d11STodd Fiala             char const **m_envp;               // Process environment.
213d3173f34SChaoren Lin             const FileSpec m_stdin_file_spec;  // Redirect stdin if not empty.
214d3173f34SChaoren Lin             const FileSpec m_stdout_file_spec; // Redirect stdout if not empty.
215d3173f34SChaoren Lin             const FileSpec m_stderr_file_spec; // Redirect stderr if not empty.
216d3173f34SChaoren Lin             const FileSpec m_working_dir;      // Working directory or empty.
217db264a6dSTamas Berghammer             const ProcessLaunchInfo &m_launch_info;
218af245d11STodd Fiala         };
219af245d11STodd Fiala 
220bd7cbc5aSPavel Labath         typedef std::function<::pid_t(Error &)> InitialOperation;
221af245d11STodd Fiala 
222af245d11STodd Fiala         // ---------------------------------------------------------------------
223af245d11STodd Fiala         // Private Instance Methods
224af245d11STodd Fiala         // ---------------------------------------------------------------------
225af245d11STodd Fiala         NativeProcessLinux ();
226af245d11STodd Fiala 
227af245d11STodd Fiala         /// Launches an inferior process ready for debugging.  Forms the
228af245d11STodd Fiala         /// implementation of Process::DoLaunch.
229af245d11STodd Fiala         void
230af245d11STodd Fiala         LaunchInferior (
231af245d11STodd Fiala             Module *module,
232af245d11STodd Fiala             char const *argv[],
233af245d11STodd Fiala             char const *envp[],
234d3173f34SChaoren Lin             const FileSpec &stdin_file_spec,
235d3173f34SChaoren Lin             const FileSpec &stdout_file_spec,
236d3173f34SChaoren Lin             const FileSpec &stderr_file_spec,
237d3173f34SChaoren Lin             const FileSpec &working_dir,
238db264a6dSTamas Berghammer             const ProcessLaunchInfo &launch_info,
239af245d11STodd Fiala             Error &error);
240af245d11STodd Fiala 
241af245d11STodd Fiala         /// Attaches to an existing process.  Forms the
2420cbf0b13STamas Berghammer         /// implementation of Process::DoAttach
243af245d11STodd Fiala         void
244af245d11STodd Fiala         AttachToInferior (lldb::pid_t pid, Error &error);
245af245d11STodd Fiala 
246af245d11STodd Fiala         void
247bd7cbc5aSPavel Labath         StartMonitorThread(const InitialOperation &operation, Error &error);
2481107b5a5SPavel Labath 
249bd7cbc5aSPavel Labath         ::pid_t
250bd7cbc5aSPavel Labath         Launch(LaunchArgs *args, Error &error);
251af245d11STodd Fiala 
252bd7cbc5aSPavel Labath         ::pid_t
253bd7cbc5aSPavel Labath         Attach(lldb::pid_t pid, Error &error);
254af245d11STodd Fiala 
25597ccc294SChaoren Lin         static Error
256af245d11STodd Fiala         SetDefaultPtraceOpts(const lldb::pid_t);
257af245d11STodd Fiala 
258af245d11STodd Fiala         static bool
259d3173f34SChaoren Lin         DupDescriptor(const FileSpec &file_spec, int fd, int flags);
260af245d11STodd Fiala 
2611107b5a5SPavel Labath         static void *
2621107b5a5SPavel Labath         MonitorThread(void *baton);
2631107b5a5SPavel Labath 
2641107b5a5SPavel Labath         void
2651107b5a5SPavel Labath         MonitorCallback(lldb::pid_t pid, bool exited, int signal, int status);
266af245d11STodd Fiala 
267af245d11STodd Fiala         void
268426bdf88SPavel Labath         WaitForNewThread(::pid_t tid);
269426bdf88SPavel Labath 
270426bdf88SPavel Labath         void
271af245d11STodd Fiala         MonitorSIGTRAP(const siginfo_t *info, lldb::pid_t pid);
272af245d11STodd Fiala 
273af245d11STodd Fiala         void
274c16f5dcaSChaoren Lin         MonitorTrace(lldb::pid_t pid, NativeThreadProtocolSP thread_sp);
275c16f5dcaSChaoren Lin 
276c16f5dcaSChaoren Lin         void
277c16f5dcaSChaoren Lin         MonitorBreakpoint(lldb::pid_t pid, NativeThreadProtocolSP thread_sp);
278c16f5dcaSChaoren Lin 
279c16f5dcaSChaoren Lin         void
280c16f5dcaSChaoren Lin         MonitorWatchpoint(lldb::pid_t pid, NativeThreadProtocolSP thread_sp, uint32_t wp_index);
281c16f5dcaSChaoren Lin 
282c16f5dcaSChaoren Lin         void
283af245d11STodd Fiala         MonitorSignal(const siginfo_t *info, lldb::pid_t pid, bool exited);
284af245d11STodd Fiala 
285e7708688STamas Berghammer         bool
286e7708688STamas Berghammer         SupportHardwareSingleStepping() const;
287e7708688STamas Berghammer 
288e7708688STamas Berghammer         Error
289e7708688STamas Berghammer         SetupSoftwareSingleStepping(NativeThreadProtocolSP thread_sp);
290e7708688STamas Berghammer 
291af245d11STodd Fiala #if 0
292af245d11STodd Fiala         static ::ProcessMessage::CrashReason
293af245d11STodd Fiala         GetCrashReasonForSIGSEGV(const siginfo_t *info);
294af245d11STodd Fiala 
295af245d11STodd Fiala         static ::ProcessMessage::CrashReason
296af245d11STodd Fiala         GetCrashReasonForSIGILL(const siginfo_t *info);
297af245d11STodd Fiala 
298af245d11STodd Fiala         static ::ProcessMessage::CrashReason
299af245d11STodd Fiala         GetCrashReasonForSIGFPE(const siginfo_t *info);
300af245d11STodd Fiala 
301af245d11STodd Fiala         static ::ProcessMessage::CrashReason
302af245d11STodd Fiala         GetCrashReasonForSIGBUS(const siginfo_t *info);
303af245d11STodd Fiala #endif
304af245d11STodd Fiala 
305af245d11STodd Fiala         bool
306af245d11STodd Fiala         HasThreadNoLock (lldb::tid_t thread_id);
307af245d11STodd Fiala 
308af245d11STodd Fiala         NativeThreadProtocolSP
309af245d11STodd Fiala         MaybeGetThreadNoLock (lldb::tid_t thread_id);
310af245d11STodd Fiala 
311af245d11STodd Fiala         bool
312af245d11STodd Fiala         StopTrackingThread (lldb::tid_t thread_id);
313af245d11STodd Fiala 
314af245d11STodd Fiala         NativeThreadProtocolSP
315af245d11STodd Fiala         AddThread (lldb::tid_t thread_id);
316af245d11STodd Fiala 
317af245d11STodd Fiala         Error
31863c8be95STamas Berghammer         GetSoftwareBreakpointPCOffset (NativeRegisterContextSP context_sp, uint32_t &actual_opcode_size);
319af245d11STodd Fiala 
320af245d11STodd Fiala         Error
321af245d11STodd Fiala         FixupBreakpointPCAsNeeded (NativeThreadProtocolSP &thread_sp);
322af245d11STodd Fiala 
323af245d11STodd Fiala         /// Writes a siginfo_t structure corresponding to the given thread ID to the
324af245d11STodd Fiala         /// memory region pointed to by @p siginfo.
32597ccc294SChaoren Lin         Error
32697ccc294SChaoren Lin         GetSignalInfo(lldb::tid_t tid, void *siginfo);
327af245d11STodd Fiala 
328af245d11STodd Fiala         /// Writes the raw event message code (vis-a-vis PTRACE_GETEVENTMSG)
329af245d11STodd Fiala         /// corresponding to the given thread ID to the memory pointed to by @p
330af245d11STodd Fiala         /// message.
33197ccc294SChaoren Lin         Error
332af245d11STodd Fiala         GetEventMessage(lldb::tid_t tid, unsigned long *message);
333af245d11STodd Fiala 
334af245d11STodd Fiala         /// Resumes the given thread.  If @p signo is anything but
335af245d11STodd Fiala         /// LLDB_INVALID_SIGNAL_NUMBER, deliver that signal to the thread.
33697ccc294SChaoren Lin         Error
337af245d11STodd Fiala         Resume(lldb::tid_t tid, uint32_t signo);
338af245d11STodd Fiala 
339af245d11STodd Fiala         /// Single steps the given thread.  If @p signo is anything but
340af245d11STodd Fiala         /// LLDB_INVALID_SIGNAL_NUMBER, deliver that signal to the thread.
34197ccc294SChaoren Lin         Error
342af245d11STodd Fiala         SingleStep(lldb::tid_t tid, uint32_t signo);
343af245d11STodd Fiala 
344511e5cdcSTodd Fiala         void
345fa03ad2eSChaoren Lin         NotifyThreadDeath (lldb::tid_t tid);
346fa03ad2eSChaoren Lin 
347db264a6dSTamas Berghammer         Error
348af245d11STodd Fiala         Detach(lldb::tid_t tid);
34986fd8e45SChaoren Lin 
350c076559aSPavel Labath 
351c076559aSPavel Labath         // Typedefs.
352c076559aSPavel Labath         typedef std::unordered_set<lldb::tid_t> ThreadIDSet;
353c076559aSPavel Labath 
3541dbc6c9cSPavel Labath         // This method is requests a stop on all threads which are still running. It sets up a
3551dbc6c9cSPavel Labath         // deferred delegate notification, which will fire once threads report as stopped. The
3561dbc6c9cSPavel Labath         // triggerring_tid will be set as the current thread (main stop reason).
357c076559aSPavel Labath         void
358337f3eb9SPavel Labath         StopRunningThreads(lldb::tid_t triggering_tid);
359c076559aSPavel Labath 
360c076559aSPavel Labath         struct PendingNotification
361c076559aSPavel Labath         {
362337f3eb9SPavel Labath             PendingNotification (lldb::tid_t triggering_tid):
363337f3eb9SPavel Labath                 triggering_tid (triggering_tid),
364108c325dSPavel Labath                 wait_for_stop_tids ()
365337f3eb9SPavel Labath             {
366337f3eb9SPavel Labath             }
367337f3eb9SPavel Labath 
368c076559aSPavel Labath             const lldb::tid_t  triggering_tid;
369c076559aSPavel Labath             ThreadIDSet        wait_for_stop_tids;
370c076559aSPavel Labath         };
371c076559aSPavel Labath         typedef std::unique_ptr<PendingNotification> PendingNotificationUP;
372c076559aSPavel Labath 
3739eb1ecb9SPavel Labath         // Notify the delegate if all threads have stopped.
3749eb1ecb9SPavel Labath         void SignalIfAllThreadsStopped();
375c076559aSPavel Labath 
376c076559aSPavel Labath         void
377c076559aSPavel Labath         RequestStopOnAllRunningThreads();
378c076559aSPavel Labath 
3795eb721edSPavel Labath         Error
3805eb721edSPavel Labath         ThreadDidStop(lldb::tid_t tid, bool initiated_by_llgs);
381c076559aSPavel Labath 
3821dbc6c9cSPavel Labath         // Resume the thread with the given thread id using the request_thread_resume_function
3831dbc6c9cSPavel Labath         // called. If error_when_already_running is then then an error is raised if we think this
3841dbc6c9cSPavel Labath         // thread is already running.
3855eb721edSPavel Labath         Error
3861dbc6c9cSPavel Labath         ResumeThread(lldb::tid_t tid, NativeThreadLinux::ResumeThreadFunction request_thread_resume_function,
3875eb721edSPavel Labath                 bool error_when_already_running);
388c076559aSPavel Labath 
389c076559aSPavel Labath         void
390ed89c7feSPavel Labath         DoStopThreads(PendingNotificationUP &&notification_up);
391c076559aSPavel Labath 
392c076559aSPavel Labath         void
3938c8ff7afSPavel Labath         ThreadWasCreated (lldb::tid_t tid);
394c076559aSPavel Labath 
395c076559aSPavel Labath         // Member variables.
396c076559aSPavel Labath         PendingNotificationUP m_pending_notification_up;
397af245d11STodd Fiala     };
398db264a6dSTamas Berghammer 
399db264a6dSTamas Berghammer } // namespace process_linux
400db264a6dSTamas Berghammer } // namespace lldb_private
401af245d11STodd Fiala 
402af245d11STodd Fiala #endif // #ifndef liblldb_NativeProcessLinux_H_
403