SAOC LLDB D integration: 3rd Weekly Update

Luís Ferreira contact at lsferreira.net
Wed Oct 6 22:34:41 UTC 2021


Hi D community!

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

## Restructuring the patch history

According to LLVM team, the [patch](https://reviews.llvm.org/D110576) I
previously sent needs to be split into smaller ones and that is a bit
of a challenge. Why you may ask? Because looking at the [ABI
specification](https://dlang.org/spec/abi.html) a lot of mangling nodes
are dependent of each other and splitting 3000 lines of code into
small, stackable and independent patches needs some planning. I tried
several layouts and
[this](https://pad.riseup.net/p/r.d96e7d99b8d964cca079be42c27e3656) one
seems to work out the best, so I'm sticking with it.

Unfortunately, this week was kinda unproductive as I mostly spent this
week entirely restructuring the patch.

Because I'll only push the patches when they are done, for now, my work
is on
[this](https://github.com/ljmf00/llvm-project/commits/add-d-demangler-splitted
) branch, although bare in mind that this will constantly change, and
to fetch new changes you need to hard reset them when pulling.

## Fixing a bug on libiberty D demangler

During the restructure, I found out that anonymous symbols were not
correctly handled and skipped, according to the specification, so I
reported a [bug](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102618)
and sent a
[patch](https://gcc.gnu.org/pipermail/gcc-patches/2021-October/580999.html
) to fix the issue.

## Add fully qualified name on array DWARF tags

This is part of the milestone 2, but since I had
[this](https://github.com/dlang/dmd/pull/13120) patch archived for a
long time I decided to push it on the weekend.

## What's next?

Next week I hopefully finish the patch split and finally push this to
the LLVM review platform. I'm also going to prepare some work for the
milestone 2 that includes analyzing some DWARF info that is currently
being generated by DMD/LDC/GDC compilers.

-- 
Sincerely,
Luís Ferreira @ lsferreira.net

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20211006/5afd4344/attachment.sig>


More information about the Digitalmars-d mailing list