[lldb-dev] Needs help contributing to lldb-vscode.

Zachary Turner via lldb-dev lldb-dev at lists.llvm.org
Tue Mar 12 13:43:54 PDT 2019


This seems reasonable to me.  It's worth pointing out though that in
regards to the last comment "IMO it's good to make this lldb-vscode more
general so that it can be used by other debugger frontends besides vscode",
despite the name lldb-vscode, there is actually nothing here that is
specific to VSCode.  It reads DAP requests on stdin and responds with DAP
responses on stdout.  That's literally it.  The only thing vscode specific
about it is the names of the source files and some internal classes.  I
actually wouldn't be opposed to changing it to lldb-dap

On Tue, Mar 12, 2019 at 12:34 PM Leonard Mosescu via lldb-dev <
lldb-dev at lists.llvm.org> wrote:

> Greg, what do you think?
>
>
> On Tue, Mar 12, 2019 at 11:50 AM Qianli Ma <chienlima at google.com> wrote:
>
>> Hi lldb community,
>>
>> I am currently working on a project related to lldb. I'd like to write a
>> DAP RPC server similars to lldb-vscode.cc
>> <https://github.com/llvm-mirror/lldb/blob/master/tools/lldb-vscode/lldb-vscode.cpp> but
>> exports I/O to internal RPC clients. Doing so requires me to reuse some
>> functions defined in lldb-vscode.cc
>> <https://github.com/llvm-mirror/lldb/blob/master/tools/lldb-vscode/lldb-vscode.cpp>.
>> However as those functions are defined using forward declaration I am not
>> able to do that.
>>
>> I'd like refactor the code a bit. More specifically, I'd like to extract
>> all helper functions in lldb-vscode.cc
>> <https://github.com/llvm-mirror/lldb/blob/master/tools/lldb-vscode/lldb-vscode.cpp> into
>> a separate file and create a header for it.  BTW, IMO it's good to make
>> this lldb-vscode more general so that it can be used by other debugger
>> frontends besides vscode.
>>
>> Please let me know WDYT and how I can proceed to submit changes for
>> review.
>>
>> Thanks and Regards
>> Qianli
>>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20190312/35bac1ff/attachment.html>


More information about the lldb-dev mailing list