www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - SAOC LLDB D integration: 10th Weekly Update

reply =?ISO-8859-1?Q?Lu=EDs?= Ferreira <contact lsferreira.net> writes:
Hi D community!

I'm here again, to describe what I've done during the tenth week of
Symmetry
Autumn of Code.



During the discussion for the next patch in the train, 4 more patches
have been
raised, due to request to split it even more:

- https://reviews.llvm.org/D114305
- https://reviews.llvm.org/D114307
- https://reviews.llvm.org/D114308
- https://reviews.llvm.org/D114309

Some more changes were made on other existing patches due to further
discussion
on implementation details.



This week I finally focused on getting a minimal TypeSystem working for
D on
the LLDB. This means nothing to the end user and huge change need to be
made to
make it functional exactly the same as is right now, the main
difference is
that, instead of relying on Clang type system, we have our own.

For now it has the Clang type system disabled and detects D as usual,
but does
nothing, when requesting any type information.

The current changes for the implementation of D TypeSystem will be in
[this](https://github.com/ljmf00/lldb-d/pull/1) PR.

I decided to create a seperate repository for this until I have a
decent plugin
to upstream. As this might take a while to implement, I would like to
ask the
community if it is worth to do some builds to several platforms with
the
demangling and language formatters enabled? I'm particularly asking
this since
building LLVM is a beefy task and some may not be able to do it easily
with
their machine. What is your thoughts?



I will continue implementing TypeSystem for D as well as a new type
wrapper to
represent a D type. I'm going to start adding support for very basic
types.

This post will be available on my blog soon:
https://lsferreira.net/posts/d-saoc-2021-10 (I'm having some issues on
publishing it on IPFS using public nodes, but it will eventually be
there).

--=20
Sincerely,
Lu=C3=ADs Ferreira   lsferreira.net
Nov 25 2021
parent reply Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Thursday, 25 November 2021 at 23:33:04 UTC, Luís Ferreira 
wrote:
 Hi D community!

 I'm here again, to describe what I've done during the tenth 
 week of
 Symmetry
 Autumn of Code.

 [...]
🆒 Will Windows users also benefit from this work?
Nov 25 2021
parent =?ISO-8859-1?Q?Lu=EDs?= Ferreira <contact lsferreira.net> writes:
On Thu, 2021-11-25 at 23:46 +0000, Imperatorn via Digitalmars-d wrote:
 On Thursday, 25 November 2021 at 23:33:04 UTC, Lu=C3=ADs Ferreira=20
 wrote:
 Hi D community!
=20
 I'm here again, to describe what I've done during the tenth=20
 week of
 Symmetry
 Autumn of Code.
=20
 [...]
=20 =F0=9F=86=92 Will Windows users also benefit from this work?
I assume, yes, as long as the necessary debug info is generated and LLDB can interpret them, like in Clang. I'm not really into CodeView as I don't use Windows. But I can do some tests there to check, but at least demangling you will have. --=20 Sincerely, Lu=C3=ADs Ferreira lsferreira.net
Nov 25 2021