LLDB  mainline
PostMortemProcess.h
Go to the documentation of this file.
1 //===-- PostMortemProcess.h -------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLDB_TARGET_POSTMORTEMPROCESS_H
10 #define LLDB_TARGET_POSTMORTEMPROCESS_H
11 
12 #include "lldb/Target/Process.h"
13 
14 namespace lldb_private {
15 
16 /// \class PostMortemProcess
17 /// Base class for all processes that don't represent a live process, such as
18 /// coredumps or processes traced in the past.
19 ///
20 /// \a lldb_private::Process virtual functions overrides that are common
21 /// between these kinds of processes can have default implementations in this
22 /// class.
23 class PostMortemProcess : public Process {
24 public:
25  using Process::Process;
26 
27  bool IsLiveDebugSession() const override { return false; }
28 };
29 
30 } // namespace lldb_private
31 
32 #endif // LLDB_TARGET_POSTMORTEMPROCESS_H
lldb_private::Process::Process
Process(lldb::TargetSP target_sp, lldb::ListenerSP listener_sp)
Construct with a shared pointer to a target, and the Process listener.
lldb_private::Process
Definition: Process.h:341
Process.h
lldb_private::PostMortemProcess
Definition: PostMortemProcess.h:23
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::PostMortemProcess::IsLiveDebugSession
bool IsLiveDebugSession() const override
Definition: PostMortemProcess.h:27