[lldb-dev] Using LLDB API on windows
Ted Woodward via lldb-dev
lldb-dev at lists.llvm.org
Mon Apr 3 08:32:25 PDT 2017
I assume you mean for SBTarget::Launch or LaunchSimple to launch a Windows application.
The short answer is, this already works.
SBTarget::Launch calls Target::Launch, which calls DebugProcess in the relevant platform. For cases where we use lldb-server, the platform make a call that eventually gets to GDBRemoteCommunication::StartDebugserverProcess to start up lldb-server. On Windows, PlatformWindows::DebugProcess calls Process::Launch, which (on Windows) will do the correct thing to start up and connect to a Windows process.
See PlatformWindows::DebugProcess in source\Plugins\Platform\Windows\PlatformWindows.cpp and ProcessLauncherWIndows::LaunchProcess in source\Host\windows\ProcessLauncherWindows.cpp .
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
From: lldb-dev [mailto:lldb-dev-bounces at lists.llvm.org] On Behalf Of Russell Greene via lldb-dev
Sent: Sunday, April 02, 2017 4:38 PM
To: lldb-dev at lists.llvm.org
Subject: [lldb-dev] Using LLDB API on windows
Hey so I am developing a project using LLDB as a debugger and am looking to make it cross-platform.
As I see it, the LLDB API boots up an instance of lldb-server, but lldb-server isn't available on windows. Is there a way to use the LLDB C++ API on windows?
On the status page <https://lldb.llvm.org/status.html> I see the lldb commandline tool is OK for windows, which uses the LLDB API, how is this achieved?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the lldb-dev