Re: [lldb-dev] Anybody using the GUI?

2019-08-26 Thread Raphael “Teemperor” Isemann via lldb-dev
I’m also in favour of keeping the GUI around. It’s not perfect, but at least in 
a usable state and not a huge maintenance burden from what I can see.

- Raphael

> On 25. Aug 2019, at 02:02, Greg Clayton via lldb-dev 
>  wrote:
> 
> I know many people use it. They tend to drop in and use it, and then drop 
> back out. I don't see how taking this out will help us do anything about 
> fixing things. I created this in hopes people would jump on and help to make 
> it. I could _never_ get the ok to work on it when I was at Apple. Still 
> haven't had time at Facebook. But I would like people to help improve it. It 
> won't take much to make it better, just needs more than 1 person to try it 
> out and help improve it. So I would vote to keep it in as we do have people 
> that are using it.
> 
>> On Aug 23, 2019, at 4:36 PM, Jonas Devlieghere  wrote:
>> 
>> Hi Greg,
>> 
>> We're more than a year later and I haven't seen any development on the
>> GUI. While I personally thing this could be a really cool feature,
>> I've never been able to use it because it's missing too many thing to
>> be useful for now. When I talk to people that know about this feature,
>> I hear either frustration or disappointment that it doesn't work
>> (yet). I (personally) haven't found anyone that is actively using it.
>> As such, can we remove it until we have resources to do it right and
>> provide our users with something they can rely on?
>> 
>> Thanks,
>> Jonas
>> 
>> On Wed, Apr 11, 2018 at 11:47 AM Greg Clayton via lldb-dev
>>  wrote:
>>> 
>>> And yes many people I know are using this including myself.
>>> 
 On Apr 11, 2018, at 11:08 AM, Davide Italiano  
 wrote:
 
 Good day.
 While trying to implement a command in lldb I noticed lldb has this
 awesome `gui` command that opens an ncurses GUI.
 I find it really useful and I wanted to play with it a bit, but I
 wasn't really able to get it working.
 In particular, I tried to press enter on `target create` or `attach`
 but nothing happens.
 
 Greg, as you wrote the original implementation, can you please explain
 how this is supposed to work? Are you actively interested in
 maintaining this mode?
 
 Thanks!
 
 --
 Davide
>>> 
>>> ___
>>> 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
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

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


[lldb-dev] Any plan to support to debug Webassembly file?

2019-08-26 Thread Terry Guo via lldb-dev
Hi there,

I am working on a project which involves compiling C++ source file to
Webassembly byte code file with LLVM. The LLVM works well and can generate
wasm byte code file with DWARF debug sections like .debug_line. I can run
the generated wasm file with my wasm virtual machine. However I find LLDB
doesn't support debugging wasm file. Do we have plan to enable LLDB
debugging wasm file? Thanks for any information.

BR,
Terry
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Any plan to support to debug Webassembly file?

2019-08-26 Thread Raphael “Teemperor” Isemann via lldb-dev
I’m not sure I understand what the question is. Do you want that LLDB attachs 
to the wasm program running inside your VM and then debug the wasm program via 
LLDB? Or that LLDB can run the wasm module itself like an executable and then 
run it/step through it/inspect it/etc.?

Cheers,
- Raphael

> On 26. Aug 2019, at 11:47, Terry Guo via lldb-dev  
> wrote:
> 
> Hi there,
> 
> I am working on a project which involves compiling C++ source file to 
> Webassembly byte code file with LLVM. The LLVM works well and can generate 
> wasm byte code file with DWARF debug sections like .debug_line. I can run the 
> generated wasm file with my wasm virtual machine. However I find LLDB doesn't 
> support debugging wasm file. Do we have plan to enable LLDB debugging wasm 
> file? Thanks for any information.
> 
> BR,
> Terry
> ___
> lldb-dev mailing list
> lldb-dev@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

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


Re: [lldb-dev] Any plan to support to debug Webassembly file?

2019-08-26 Thread Raphael “Teemperor” Isemann via lldb-dev
+lldb-dev

> On 26. Aug 2019, at 12:57, Raphael “Teemperor” Isemann  
> wrote:
> 
> If I understand correctly your VM is your own custom wasm interpreter/JIT? If 
> yes, then I don’t think it is realistic that LLDB can ever support it out of 
> the box. But you can write a LLDB plugin that calls your own 
> interpreter-implementations of functions such as stepping/continue/settings 
> breakpoints, etc. Quick google search shows this example of doing the same 
> for the Ruby interpreter that hopefully illustrates what I mean: 
> https://christoph.luppri.ch/articles/ruby/debugging-ruby-programs-on-osx-with-lldb/
>  
> 
> 
> - Raphael
> 
>> On 26. Aug 2019, at 12:37, Terry Guo > > wrote:
>> 
>> Hi Raphael,
>> 
>> Thanks. I mean the first case, attaching to my vm and then debugging via 
>> LLDB like setting breakpoint, single step or viewing the memory of wasm 
>> application.
>> 
>> BR,
>> Terry 
>> 
>> On Mon, Aug 26, 2019 at 5:59 PM Raphael “Teemperor” Isemann 
>> mailto:teempe...@gmail.com>> wrote:
>> I’m not sure I understand what the question is. Do you want that LLDB 
>> attachs to the wasm program running inside your VM and then debug the wasm 
>> program via LLDB? Or that LLDB can run the wasm module itself like an 
>> executable and then run it/step through it/inspect it/etc.?
>> 
>> Cheers,
>> - Raphael
>> 
>> > On 26. Aug 2019, at 11:47, Terry Guo via lldb-dev > > > wrote:
>> > 
>> > Hi there,
>> > 
>> > I am working on a project which involves compiling C++ source file to 
>> > Webassembly byte code file with LLVM. The LLVM works well and can generate 
>> > wasm byte code file with DWARF debug sections like .debug_line. I can run 
>> > the generated wasm file with my wasm virtual machine. However I find LLDB 
>> > doesn't support debugging wasm file. Do we have plan to enable LLDB 
>> > debugging wasm file? Thanks for any information.
>> > 
>> > BR,
>> > Terry
>> > ___
>> > lldb-dev mailing list
>> > lldb-dev@lists.llvm.org 
>> > https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev 
>> > 
>> 
> 

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


Re: [lldb-dev] Anybody using the GUI?

2019-08-26 Thread René J . V . Bertin via lldb-dev
On Monday August 26 2019 11:18:28 Raphael “Teemperor” Isemann via lldb-dev 
wrote:

>> On 25. Aug 2019, at 02:02, Greg Clayton via lldb-dev 
>>  wrote:
>> 
>> I know many people use it.

Count me among those who didn't even know it existed - is it even packaged in 
any of the official LLVM (.deb) packages? I haven't noticed it as part of the 
MacPorts ports for LLVM/Clang either...

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


Re: [lldb-dev] Anybody using the GUI?

2019-08-26 Thread Jim Ingham via lldb-dev
The GUI is built into lldb, it is not a separate entity.

Jim


> On Aug 26, 2019, at 12:39 PM, René J.V. Bertin via lldb-dev 
>  wrote:
> 
> On Monday August 26 2019 11:18:28 Raphael “Teemperor” Isemann via lldb-dev 
> wrote:
> 
>>> On 25. Aug 2019, at 02:02, Greg Clayton via lldb-dev 
>>>  wrote:
>>> 
>>> I know many people use it.
> 
> Count me among those who didn't even know it existed - is it even packaged in 
> any of the official LLVM (.deb) packages? I haven't noticed it as part of the 
> MacPorts ports for LLVM/Clang either...
> 
> R.
> ___
> lldb-dev mailing list
> lldb-dev@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

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


Re: [lldb-dev] Anybody using the GUI?

2019-08-26 Thread René J . V . Bertin via lldb-dev

On 20190826 21:41, Jim Ingham wrote:

The GUI is built into lldb, it is not a separate entity.



Oh, right, so a "AUI" or "CUI" rather than something properly graphical. Sorry, 
not very useful to me.

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


Re: [lldb-dev] Any plan to support to debug Webassembly file?

2019-08-26 Thread Terry Guo via lldb-dev
Hi Raphael,

Thanks for your recommendation. How about the very first step which
enables LLDB to recognize the wasm bytecode via commands like "lldb
my.wasm" or "file my.wasm" inside lldb? And IMHO the second step is to
enable LLDB to recognize the dwarf sections embedded in wasm bytecode
file. Do you have any suggestion where to start? I searched around and
couldn't find useful instructions/documentations for above two steps.

BR,
Terry


On Mon, Aug 26, 2019 at 7:03 PM Raphael “Teemperor” Isemann
 wrote:
>
> +lldb-dev
>
> On 26. Aug 2019, at 12:57, Raphael “Teemperor” Isemann  
> wrote:
>
> If I understand correctly your VM is your own custom wasm interpreter/JIT? If 
> yes, then I don’t think it is realistic that LLDB can ever support it out of 
> the box. But you can write a LLDB plugin that calls your own 
> interpreter-implementations of functions such as stepping/continue/settings 
> breakpoints, etc. Quick google search shows this example of doing the same 
> for the Ruby interpreter that hopefully illustrates what I mean: 
> https://christoph.luppri.ch/articles/ruby/debugging-ruby-programs-on-osx-with-lldb/
>
> - Raphael
>
> On 26. Aug 2019, at 12:37, Terry Guo  wrote:
>
> Hi Raphael,
>
> Thanks. I mean the first case, attaching to my vm and then debugging via LLDB 
> like setting breakpoint, single step or viewing the memory of wasm 
> application.
>
> BR,
> Terry
>
> On Mon, Aug 26, 2019 at 5:59 PM Raphael “Teemperor” Isemann 
>  wrote:
>>
>> I’m not sure I understand what the question is. Do you want that LLDB 
>> attachs to the wasm program running inside your VM and then debug the wasm 
>> program via LLDB? Or that LLDB can run the wasm module itself like an 
>> executable and then run it/step through it/inspect it/etc.?
>>
>> Cheers,
>> - Raphael
>>
>> > On 26. Aug 2019, at 11:47, Terry Guo via lldb-dev 
>> >  wrote:
>> >
>> > Hi there,
>> >
>> > I am working on a project which involves compiling C++ source file to 
>> > Webassembly byte code file with LLVM. The LLVM works well and can generate 
>> > wasm byte code file with DWARF debug sections like .debug_line. I can run 
>> > the generated wasm file with my wasm virtual machine. However I find LLDB 
>> > doesn't support debugging wasm file. Do we have plan to enable LLDB 
>> > debugging wasm file? Thanks for any information.
>> >
>> > BR,
>> > Terry
>> > ___
>> > lldb-dev mailing list
>> > lldb-dev@lists.llvm.org
>> > https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>>
>
>
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev