Re: [lldb-dev] Using LLDB API on windows

2017-04-03 Thread Ted Woodward via lldb-dev
Hi Russell,

 

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 .

 

Ted

 

--

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-boun...@lists.llvm.org] On Behalf Of Russell 
Greene via lldb-dev
Sent: Sunday, April 02, 2017 4:38 PM
To: lldb-dev@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   I see the lldb 
commandline tool is OK for windows, which uses the LLDB API, how is this 
achieved?

 

-Russell

___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Using LLDB API on windows

2017-04-03 Thread Russell Greene via lldb-dev
That makes sense, and I'm sure it works great when using MSVC as a
compiler, but I think LLDB recognizes mingw as a unix compiler and tries to
do GDBRemoteCommunication::StartDebugserverProcess when it should be doing
PlatformWindows::DebugProcess.

Not sure though. All I know is when I try to do a SBTarget::Launch on
windows under mingw (msys2) it says cannot find lldb-server...

-Russell

On Mon, Apr 3, 2017 at 9:32 AM Ted Woodward 
wrote:

> Hi Russell,
>
>
>
> 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 .
>
>
>
> Ted
>
>
>
> --
>
> 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-boun...@lists.llvm.org] *On Behalf Of 
> *Russell
> Greene via lldb-dev
> *Sent:* Sunday, April 02, 2017 4:38 PM
> *To:* lldb-dev@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  I see the lldb
> commandline tool is OK for windows, which uses the LLDB API, how is this
> achieved?
>
>
>
> -Russell
>
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Using LLDB API on windows

2017-04-03 Thread Ted Woodward via lldb-dev
I wonder if lldb isn’t using the windows platform. In the lldb command line, 
load up your target, then type “target list”. I’d like to see what plaform it 
chose, and what the triple is.

 

--

Qualcomm Innovation Center, Inc.

The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux 
Foundation Collaborative Project

 

From: Russell Greene [mailto:russellgree...@gmail.com] 
Sent: Monday, April 03, 2017 11:24 AM
To: Ted Woodward ; LLDB 
Subject: Re: [lldb-dev] Using LLDB API on windows

 

That makes sense, and I'm sure it works great when using MSVC as a compiler, 
but I think LLDB recognizes mingw as a unix compiler and tries to do 
GDBRemoteCommunication::StartDebugserverProcess when it should be doing 
PlatformWindows::DebugProcess. 

 

Not sure though. All I know is when I try to do a SBTarget::Launch on windows 
under mingw (msys2) it says cannot find lldb-server...

 

-Russell

 

On Mon, Apr 3, 2017 at 9:32 AM Ted Woodward mailto:ted.woodw...@codeaurora.org> > wrote:

Hi Russell,

 

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 .

 

Ted

 

--

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-boun...@lists.llvm.org 
 ] On Behalf Of Russell Greene via 
lldb-dev
Sent: Sunday, April 02, 2017 4:38 PM
To: lldb-dev@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   I see the lldb 
commandline tool is OK for windows, which uses the LLDB API, how is this 
achieved?

 

-Russell

___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Using LLDB API on windows

2017-04-03 Thread Russell Greene via lldb-dev
Interesting:


PS C:\Users\IEUser> C:\msys64\mingw64\bin\lldb.exe
C:\msys64\home\IEUser\chigraph\build\bin\chi.exe
(lldb) target create
"C:\\msys64\\home\\IEUser\\chigraph\\build\\bin\\chi.exe"
Current executable set to
'C:\msys64\home\IEUser\chigraph\build\bin\chi.exe' (x86_64).
(lldb) target list
Current targets:
* target #0: C:\msys64\home\IEUser\chigraph\build\bin\chi.exe (
arch=x86_64-pc-windows-msvc, platform=host )
(lldb)


-Russell


On Mon, Apr 3, 2017 at 10:54 AM Ted Woodward 
wrote:

> I wonder if lldb isn’t using the windows platform. In the lldb command
> line, load up your target, then type “target list”. I’d like to see what
> plaform it chose, and what the triple is.
>
>
>
> --
>
> Qualcomm Innovation Center, Inc.
>
> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
> Linux Foundation Collaborative Project
>
>
>
> *From:* Russell Greene [mailto:russellgree...@gmail.com]
> *Sent:* Monday, April 03, 2017 11:24 AM
> *To:* Ted Woodward ; LLDB <
> lldb-dev@lists.llvm.org>
> *Subject:* Re: [lldb-dev] Using LLDB API on windows
>
>
>
> That makes sense, and I'm sure it works great when using MSVC as a
> compiler, but I think LLDB recognizes mingw as a unix compiler and tries to
> do GDBRemoteCommunication::StartDebugserverProcess when it should be doing
> PlatformWindows::DebugProcess.
>
>
>
> Not sure though. All I know is when I try to do a SBTarget::Launch on
> windows under mingw (msys2) it says cannot find lldb-server...
>
>
>
> -Russell
>
>
>
> On Mon, Apr 3, 2017 at 9:32 AM Ted Woodward 
> wrote:
>
> Hi Russell,
>
>
>
> 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 .
>
>
>
> Ted
>
>
>
> --
>
> 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-boun...@lists.llvm.org] *On Behalf Of 
> *Russell
> Greene via lldb-dev
> *Sent:* Sunday, April 02, 2017 4:38 PM
> *To:* lldb-dev@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  I see the lldb
> commandline tool is OK for windows, which uses the LLDB API, how is this
> achieved?
>
>
>
> -Russell
>
>
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Using LLDB API on windows

2017-04-03 Thread Russell Greene via lldb-dev
Also, forgot to include this part: it's pretty important:

PS C:\Users\IEUser> C:\msys64\mingw64\bin\lldb.exe
C:\msys64\home\IEUser\chigraph\build\bin\chi.exe
(lldb) target create
"C:\\msys64\\home\\IEUser\\chigraph\\build\\bin\\chi.exe"
Current executable set to
'C:\msys64\home\IEUser\chigraph\build\bin\chi.exe' (x86_64).
(lldb) target list
Current targets:
* target #0: C:\msys64\home\IEUser\chigraph\build\bin\chi.exe (
arch=x86_64-pc-windows-msvc, platform=host )
(lldb)  r
error: process launch failed: unable to locate lldb-server
(lldb)


-Russell

On Mon, Apr 3, 2017 at 4:39 PM Russell Greene 
wrote:

> Interesting:
>
>
> PS C:\Users\IEUser> C:\msys64\mingw64\bin\lldb.exe
> C:\msys64\home\IEUser\chigraph\build\bin\chi.exe
> (lldb) target create
> "C:\\msys64\\home\\IEUser\\chigraph\\build\\bin\\chi.exe"
> Current executable set to
> 'C:\msys64\home\IEUser\chigraph\build\bin\chi.exe' (x86_64).
> (lldb) target list
> Current targets:
> * target #0: C:\msys64\home\IEUser\chigraph\build\bin\chi.exe (
> arch=x86_64-pc-windows-msvc, platform=host )
> (lldb)
>
>
> -Russell
>
>
> On Mon, Apr 3, 2017 at 10:54 AM Ted Woodward 
> wrote:
>
> I wonder if lldb isn’t using the windows platform. In the lldb command
> line, load up your target, then type “target list”. I’d like to see what
> plaform it chose, and what the triple is.
>
>
>
> --
>
> Qualcomm Innovation Center, Inc.
>
> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
> Linux Foundation Collaborative Project
>
>
>
> *From:* Russell Greene [mailto:russellgree...@gmail.com]
> *Sent:* Monday, April 03, 2017 11:24 AM
> *To:* Ted Woodward ; LLDB <
> lldb-dev@lists.llvm.org>
> *Subject:* Re: [lldb-dev] Using LLDB API on windows
>
>
>
> That makes sense, and I'm sure it works great when using MSVC as a
> compiler, but I think LLDB recognizes mingw as a unix compiler and tries to
> do GDBRemoteCommunication::StartDebugserverProcess when it should be doing
> PlatformWindows::DebugProcess.
>
>
>
> Not sure though. All I know is when I try to do a SBTarget::Launch on
> windows under mingw (msys2) it says cannot find lldb-server...
>
>
>
> -Russell
>
>
>
> On Mon, Apr 3, 2017 at 9:32 AM Ted Woodward 
> wrote:
>
> Hi Russell,
>
>
>
> 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 .
>
>
>
> Ted
>
>
>
> --
>
> 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-boun...@lists.llvm.org] *On Behalf Of 
> *Russell
> Greene via lldb-dev
> *Sent:* Sunday, April 02, 2017 4:38 PM
> *To:* lldb-dev@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  I see the lldb
> commandline tool is OK for windows, which uses the LLDB API, how is this
> achieved?
>
>
>
> -Russell
>
>
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] April LLVM bay-area social is this Thursday!

2017-04-03 Thread George Burgess IV via lldb-dev
We'll be at Tied House as usual, starting on Thursday the 6th at 7pm!

If you can, help us plan and RSVP here: http://meetu.ps/37TrcL

See everyone there!
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


[lldb-dev] Temporary log channel...

2017-04-03 Thread Jim Ingham via lldb-dev
BTW, Jason noticed that somebody had deleted the LIBLLDB_LOG_TEMPORARY log 
channel.  

Since it looks like one of those things that there's no use for, it's easy to 
think deleting it is a good cleanup.  But it's actually quite useful as a way 
to quickly tailor-make a particular set of logs.  Some of the logs (the 
expression log in particular) are pretty chatty and you just want a subset, and 
sometimes you want to pick just a few messages from several logs.  You can 
easily do that by just switching the log channel from whatever log it was to 
LIBLLDB_LOG_TEMPORARY, and then do "log enable lldb temp".  Then before you 
check in your code, you can just go revert all the instances of 
LLDB_LOG_TEMPORARY and you've left the original state untouched.

Jim

___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Using LLDB API on windows

2017-04-03 Thread Zachary Turner via lldb-dev
As the person who added most of the support for debugging Windows
executables, I can tell you that I never tested a MinGW executable (nor was
it one of my original goals).  It doesn't entirely surprise me that things
are behaving this way, but I'm not sure what the exact cause would be off
the top of my head.  MinGW executables and msvc Win32 executables use an
entirely different ABI, so I would exepct the non lldb-server path to be a
little wonky since I always assumed MSVC ABI in my implementation.  On the
other hand, as you said there is no lldb-server.

If you're interested in digging into the source code and trying to add a
patch for MinGW support, I can give you some pointers.

On Mon, Apr 3, 2017 at 3:41 PM Russell Greene via lldb-dev <
lldb-dev@lists.llvm.org> wrote:

> Also, forgot to include this part: it's pretty important:
>
> PS C:\Users\IEUser> C:\msys64\mingw64\bin\lldb.exe
> C:\msys64\home\IEUser\chigraph\build\bin\chi.exe
> (lldb) target create
> "C:\\msys64\\home\\IEUser\\chigraph\\build\\bin\\chi.exe"
> Current executable set to
> 'C:\msys64\home\IEUser\chigraph\build\bin\chi.exe' (x86_64).
> (lldb) target list
> Current targets:
> * target #0: C:\msys64\home\IEUser\chigraph\build\bin\chi.exe (
> arch=x86_64-pc-windows-msvc, platform=host )
> (lldb)  r
> error: process launch failed: unable to locate lldb-server
> (lldb)
>
>
> -Russell
>
> On Mon, Apr 3, 2017 at 4:39 PM Russell Greene 
> wrote:
>
> Interesting:
>
>
> PS C:\Users\IEUser> C:\msys64\mingw64\bin\lldb.exe
> C:\msys64\home\IEUser\chigraph\build\bin\chi.exe
> (lldb) target create
> "C:\\msys64\\home\\IEUser\\chigraph\\build\\bin\\chi.exe"
> Current executable set to
> 'C:\msys64\home\IEUser\chigraph\build\bin\chi.exe' (x86_64).
> (lldb) target list
> Current targets:
> * target #0: C:\msys64\home\IEUser\chigraph\build\bin\chi.exe (
> arch=x86_64-pc-windows-msvc, platform=host )
> (lldb)
>
>
> -Russell
>
>
> On Mon, Apr 3, 2017 at 10:54 AM Ted Woodward 
> wrote:
>
> I wonder if lldb isn’t using the windows platform. In the lldb command
> line, load up your target, then type “target list”. I’d like to see what
> plaform it chose, and what the triple is.
>
>
>
> --
>
> Qualcomm Innovation Center, Inc.
>
> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
> Linux Foundation Collaborative Project
>
>
>
> *From:* Russell Greene [mailto:russellgree...@gmail.com]
> *Sent:* Monday, April 03, 2017 11:24 AM
> *To:* Ted Woodward ; LLDB <
> lldb-dev@lists.llvm.org>
> *Subject:* Re: [lldb-dev] Using LLDB API on windows
>
>
>
> That makes sense, and I'm sure it works great when using MSVC as a
> compiler, but I think LLDB recognizes mingw as a unix compiler and tries to
> do GDBRemoteCommunication::StartDebugserverProcess when it should be doing
> PlatformWindows::DebugProcess.
>
>
>
> Not sure though. All I know is when I try to do a SBTarget::Launch on
> windows under mingw (msys2) it says cannot find lldb-server...
>
>
>
> -Russell
>
>
>
> On Mon, Apr 3, 2017 at 9:32 AM Ted Woodward 
> wrote:
>
> Hi Russell,
>
>
>
> 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 .
>
>
>
> Ted
>
>
>
> --
>
> 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-boun...@lists.llvm.org] *On Behalf Of 
> *Russell
> Greene via lldb-dev
> *Sent:* Sunday, April 02, 2017 4:38 PM
> *To:* lldb-dev@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  I see the lldb
> commandline tool is OK for windows, which uses the LLDB API, how is this
> achieved?
>
>
>
> -Russell
>
> ___
> lldb-dev mailing list
> lldb-dev@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listin

Re: [lldb-dev] Using LLDB API on windows

2017-04-03 Thread Russell Greene via lldb-dev
Ooh, I'd definitely be interested.

Sounds like a very fun project.

I'll have to familiarize myself with the internals (I'm currently learning
the API, which seems to resemble the internals moderately well...)

I'll start educating myself tomorrow morning when I wake.

-Russell

On Mon, Apr 3, 2017, 9:00 PM Zachary Turner  wrote:

> As the person who added most of the support for debugging Windows
> executables, I can tell you that I never tested a MinGW executable (nor was
> it one of my original goals).  It doesn't entirely surprise me that things
> are behaving this way, but I'm not sure what the exact cause would be off
> the top of my head.  MinGW executables and msvc Win32 executables use an
> entirely different ABI, so I would exepct the non lldb-server path to be a
> little wonky since I always assumed MSVC ABI in my implementation.  On the
> other hand, as you said there is no lldb-server.
>
> If you're interested in digging into the source code and trying to add a
> patch for MinGW support, I can give you some pointers.
>
> On Mon, Apr 3, 2017 at 3:41 PM Russell Greene via lldb-dev <
> lldb-dev@lists.llvm.org> wrote:
>
> Also, forgot to include this part: it's pretty important:
>
> PS C:\Users\IEUser> C:\msys64\mingw64\bin\lldb.exe
> C:\msys64\home\IEUser\chigraph\build\bin\chi.exe
> (lldb) target create
> "C:\\msys64\\home\\IEUser\\chigraph\\build\\bin\\chi.exe"
> Current executable set to
> 'C:\msys64\home\IEUser\chigraph\build\bin\chi.exe' (x86_64).
> (lldb) target list
> Current targets:
> * target #0: C:\msys64\home\IEUser\chigraph\build\bin\chi.exe (
> arch=x86_64-pc-windows-msvc, platform=host )
> (lldb)  r
> error: process launch failed: unable to locate lldb-server
> (lldb)
>
>
> -Russell
>
> On Mon, Apr 3, 2017 at 4:39 PM Russell Greene 
> wrote:
>
> Interesting:
>
>
> PS C:\Users\IEUser> C:\msys64\mingw64\bin\lldb.exe
> C:\msys64\home\IEUser\chigraph\build\bin\chi.exe
> (lldb) target create
> "C:\\msys64\\home\\IEUser\\chigraph\\build\\bin\\chi.exe"
> Current executable set to
> 'C:\msys64\home\IEUser\chigraph\build\bin\chi.exe' (x86_64).
> (lldb) target list
> Current targets:
> * target #0: C:\msys64\home\IEUser\chigraph\build\bin\chi.exe (
> arch=x86_64-pc-windows-msvc, platform=host )
> (lldb)
>
>
> -Russell
>
>
> On Mon, Apr 3, 2017 at 10:54 AM Ted Woodward 
> wrote:
>
> I wonder if lldb isn’t using the windows platform. In the lldb command
> line, load up your target, then type “target list”. I’d like to see what
> plaform it chose, and what the triple is.
>
>
>
> --
>
> Qualcomm Innovation Center, Inc.
>
> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
> Linux Foundation Collaborative Project
>
>
>
> *From:* Russell Greene [mailto:russellgree...@gmail.com]
> *Sent:* Monday, April 03, 2017 11:24 AM
> *To:* Ted Woodward ; LLDB <
> lldb-dev@lists.llvm.org>
> *Subject:* Re: [lldb-dev] Using LLDB API on windows
>
>
>
> That makes sense, and I'm sure it works great when using MSVC as a
> compiler, but I think LLDB recognizes mingw as a unix compiler and tries to
> do GDBRemoteCommunication::StartDebugserverProcess when it should be doing
> PlatformWindows::DebugProcess.
>
>
>
> Not sure though. All I know is when I try to do a SBTarget::Launch on
> windows under mingw (msys2) it says cannot find lldb-server...
>
>
>
> -Russell
>
>
>
> On Mon, Apr 3, 2017 at 9:32 AM Ted Woodward 
> wrote:
>
> Hi Russell,
>
>
>
> 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 .
>
>
>
> Ted
>
>
>
> --
>
> 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-boun...@lists.llvm.org] *On Behalf Of 
> *Russell
> Greene via lldb-dev
> *Sent:* Sunday, April 02, 2017 4:38 PM
> *To:* lldb-dev@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  I see the lldb
> commandline tool is OK for windows, which