Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:42:54

0001 //===-- PostMortemProcess.h -------------------------------------*- C++ -*-===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef LLDB_TARGET_POSTMORTEMPROCESS_H
0010 #define LLDB_TARGET_POSTMORTEMPROCESS_H
0011 
0012 #include "lldb/Target/Process.h"
0013 
0014 namespace lldb_private {
0015 
0016 /// \class PostMortemProcess
0017 /// Base class for all processes that don't represent a live process, such as
0018 /// coredumps or processes traced in the past.
0019 ///
0020 /// \a lldb_private::Process virtual functions overrides that are common
0021 /// between these kinds of processes can have default implementations in this
0022 /// class.
0023 class PostMortemProcess : public Process {
0024   using Process::Process;
0025 
0026 public:
0027   PostMortemProcess(lldb::TargetSP target_sp, lldb::ListenerSP listener_sp,
0028                     const FileSpec &core_file)
0029       : Process(target_sp, listener_sp), m_core_file(core_file) {}
0030 
0031   bool IsLiveDebugSession() const override { return false; }
0032 
0033   FileSpec GetCoreFile() const override { return m_core_file; }
0034 
0035 protected:
0036   FileSpec m_core_file;
0037 };
0038 
0039 } // namespace lldb_private
0040 
0041 #endif // LLDB_TARGET_POSTMORTEMPROCESS_H