www.digitalmars.com         C & C++   DMDScript  

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

reply =?UTF-8?B?THXDrXM=?= Ferreira <contact lsferreira.net> writes:
Hi D community!

I'm here again, to describe what I've done during the thirteenth 
week of
Symmetry Autumn of Code. This week as a bit atypical as I got 
infected with
COVID-19 and this made me feel exhausted both physically and 
mentally.



After digging a bit about the problem I found out there is no 
problem
specifically in Release builds, and a simple function called 
`Verify` is there
to double check if the type is correct for Debug builds. After 
fixing that
function, the LLDB can now dump some simple output about global 
TLS and non-TLS
variables:

```
(lldb) ta v
Global variables for app.d in app:
app.bar = <No TLS data currently exists for this thread.>

app.ptr = <could not resolve type>
app.foobar =
```

For now it only recognizes boolean types, but it can't show up 
the value since
LLDB doesn't know a way to dump it correctly.

You can try this version yourself using
[this](https://github.com/devtty63/llvm-project/tree/lldb-d/implement-typesystem-d)
branch.



I pushed a patch to decouple DWARF to LLDB encoding logic from 
Clang DWARF AST
Parser, along with a trivial fix about duplicate map assignment:

- https://reviews.llvm.org/D115662
- https://reviews.llvm.org/D115663



I already started working on some helpers to fetch the LLDB 
Format, Encoding
and BasicType, along with other information about a type to 
properly display
them. I'm not sure how Milestone 4 is going to work, as I 
underestimated
the support for custom expessions.
Dec 16 2021
parent reply Steven Schveighoffer <schveiguy gmail.com> writes:
On 12/16/21 7:32 PM, Luís Ferreira wrote:
 Hi D community!
 
 I'm here again, to describe what I've done during the thirteenth week of
 Symmetry Autumn of Code. This week as a bit atypical as I got infected with
 COVID-19 and this made me feel exhausted both physically and mentally.
Ouch! Sorry to hear, and good to see you able to feel good enough to do some work and post here! FYI, I'm looking very much forward to better debug support! -Steve
Dec 16 2021
parent =?ISO-8859-1?Q?Lu=EDs?= Ferreira <contact lsferreira.net> writes:
On Thu, 2021-12-16 at 21:45 -0500, Steven Schveighoffer via
Digitalmars-d wrote:
 On 12/16/21 7:32 PM, Lu=C3=ADs Ferreira wrote:
 Hi D community!
=20
 I'm here again, to describe what I've done during the thirteenth
 week of
 Symmetry Autumn of Code. This week as a bit atypical as I got
 infected with
 COVID-19 and this made me feel exhausted both physically and
 mentally.
=20 Ouch! Sorry to hear, and good to see you able to feel good enough to do=20 some work and post here! =20 FYI, I'm looking very much forward to better debug support! =20 -Steve
Thanks! --=20 Sincerely, Lu=C3=ADs Ferreira lsferreira.net
Dec 23 2021