LLDB  mainline
PlatformWindows.h
Go to the documentation of this file.
1 //===-- PlatformWindows.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_SOURCE_PLUGINS_PLATFORM_WINDOWS_PLATFORMWINDOWS_H
10 #define LLDB_SOURCE_PLUGINS_PLATFORM_WINDOWS_PLATFORMWINDOWS_H
11 
13 
14 namespace lldb_private {
15 
17 public:
18  PlatformWindows(bool is_host);
19 
20  static void Initialize();
21 
22  static void Terminate();
23 
24  // lldb_private::PluginInterface functions
25  static lldb::PlatformSP CreateInstance(bool force,
26  const lldb_private::ArchSpec *arch);
27 
29 
30  static const char *GetPluginDescriptionStatic(bool is_host);
31 
33 
34  // lldb_private::Platform functions
35  const char *GetDescription() override {
37  }
38 
40 
42 
43  lldb::ProcessSP DebugProcess(lldb_private::ProcessLaunchInfo &launch_info,
44  lldb_private::Debugger &debugger,
45  lldb_private::Target &target,
46  lldb_private::Status &error) override;
47 
48  lldb::ProcessSP Attach(lldb_private::ProcessAttachInfo &attach_info,
49  lldb_private::Debugger &debugger,
50  lldb_private::Target *target,
51  lldb_private::Status &error) override;
52 
54  lldb_private::ArchSpec &arch) override;
55 
56  void GetStatus(lldb_private::Stream &strm) override;
57 
58  bool CanDebugProcess() override;
59 
60  // FIXME not sure what the _sigtramp equivalent would be on this platform
62 
63  ConstString GetFullNameForDylib(ConstString basename) override;
64 
66  BreakpointSite *bp_site) override;
67 };
68 
69 } // namespace lldb_private
70 
71 #endif // LLDB_SOURCE_PLUGINS_PLATFORM_WINDOWS_PLATFORMWINDOWS_H
lldb_private::PlatformWindows::CreateInstance
static lldb::PlatformSP CreateInstance(bool force, const lldb_private::ArchSpec *arch)
Definition: PlatformWindows.cpp:63
lldb_private::ArchSpec
Definition: ArchSpec.h:33
lldb_private::PlatformWindows::Terminate
static void Terminate()
Definition: PlatformWindows.cpp:141
lldb_private::PlatformWindows::GetPluginDescriptionStatic
static const char * GetPluginDescriptionStatic(bool is_host)
Definition: PlatformWindows.cpp:115
RemoteAwarePlatform.h
lldb_private::PlatformWindows::DisconnectRemote
lldb_private::Status DisconnectRemote() override
Definition: PlatformWindows.cpp:184
lldb_private::PlatformWindows::Initialize
static void Initialize()
Definition: PlatformWindows.cpp:124
lldb_private::PlatformWindows::GetDescription
const char * GetDescription() override
Definition: PlatformWindows.h:35
lldb_private::Stream
Definition: Stream.h:28
lldb_private::Args
Definition: Args.h:33
lldb_private::Target
Definition: Target.h:450
lldb_private::PlatformWindows::GetSoftwareBreakpointTrapOpcode
size_t GetSoftwareBreakpointTrapOpcode(Target &target, BreakpointSite *bp_site) override
Definition: PlatformWindows.cpp:317
lldb_private::PlatformWindows::GetPluginName
lldb_private::ConstString GetPluginName() override
Definition: PlatformWindows.cpp:120
error
static llvm::raw_ostream & error(Stream &strm)
Definition: CommandReturnObject.cpp:17
lldb_private::BreakpointSite
Definition: BreakpointSite.h:35
lldb_private::ProcessLaunchInfo
Definition: ProcessLaunchInfo.h:31
lldb_private::PlatformWindows::GetPluginNameStatic
static lldb_private::ConstString GetPluginNameStatic(bool is_host)
Definition: PlatformWindows.cpp:105
lldb_private::ConstString
Definition: ConstString.h:40
lldb_private::PlatformWindows::ConnectRemote
lldb_private::Status ConnectRemote(lldb_private::Args &args) override
Definition: PlatformWindows.cpp:154
lldb_private::Debugger
Definition: Debugger.h:70
lldb_private::ProcessAttachInfo
Definition: Process.h:113
lldb_private::PlatformWindows::GetFullNameForDylib
ConstString GetFullNameForDylib(ConstString basename) override
Definition: PlatformWindows.cpp:307
lldb_private::Status
Definition: Status.h:44
uint32_t
lldb_private::PlatformWindows::GetStatus
void GetStatus(lldb_private::Stream &strm) override
Report the current status for this platform.
Definition: PlatformWindows.cpp:296
lldb_private::PlatformWindows::GetSupportedArchitectureAtIndex
bool GetSupportedArchitectureAtIndex(uint32_t idx, lldb_private::ArchSpec &arch) override
Get the platform's supported architectures in the order in which they should be searched.
Definition: PlatformWindows.cpp:286
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::PlatformWindows::Attach
lldb::ProcessSP Attach(lldb_private::ProcessAttachInfo &attach_info, lldb_private::Debugger &debugger, lldb_private::Target *target, lldb_private::Status &error) override
Attach to an existing process using a process ID.
Definition: PlatformWindows.cpp:248
lldb_private::Platform::IsHost
bool IsHost() const
Definition: Platform.h:437
lldb_private::PlatformWindows::PlatformWindows
PlatformWindows(bool is_host)
Default Constructor.
Definition: PlatformWindows.cpp:152
lldb_private::RemoteAwarePlatform
A base class for platforms which automatically want to be able to forward operations to a remote plat...
Definition: RemoteAwarePlatform.h:18
lldb_private::PlatformWindows::DebugProcess
lldb::ProcessSP DebugProcess(lldb_private::ProcessLaunchInfo &launch_info, lldb_private::Debugger &debugger, lldb_private::Target &target, lldb_private::Status &error) override
Subclasses do not need to implement this function as it uses the Platform::LaunchProcess() followed b...
Definition: PlatformWindows.cpp:200
lldb_private::PlatformWindows::CalculateTrapHandlerSymbolNames
void CalculateTrapHandlerSymbolNames() override
Ask the Platform subclass to fill in the list of trap handler names.
Definition: PlatformWindows.h:61
lldb_private::PlatformWindows
Definition: PlatformWindows.h:16
lldb_private::PlatformWindows::CanDebugProcess
bool CanDebugProcess() override
Not all platforms will support debugging a process by spawning somehow halted for a debugger (specifi...
Definition: PlatformWindows.cpp:305