dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.07k stars 4.69k forks source link

NativeAOT lldb error "error: need to add support for DW_TAG_base_type 'void' encoded with DW_ATE = 0x0, bit_size = 0" #85051

Open LakshanF opened 1 year ago

LakshanF commented 1 year ago

lldb (version 10.0.0) complains with the below error when setting a breakpoint for a lambda expression for a thread task in a managed file. In this particular case, the readerTask in IpcTraceTest.cs. The test is large (100M with symbols) and I will keep a local copy in case its needed.

/simpleprovidervalidation/native$ lldb simpleprovidervalidation
(lldb) target create "simpleprovidervalidation"
Current executable set to './artifacts/tests/coreclr/linux.x64.Debug/tracing/eventpipe/simpleprovidervalidation/simpleprovidervalidation/native/simpleprovidervalidation' (x86_64).
(lldb) breakpoint set --file IpcTraceTest.cs --line 213
error: need to add support for DW_TAG_base_type 'void' encoded with DW_ATE = 0x0, bit_size = 0
Breakpoint 1: 2 locations.
(lldb) version
lldb version 10.0.0
ghost commented 1 year ago

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.

Issue Details
lldb (version 10.0.0) complains with the below error when setting a breakpoint for a lambda expression for a thread task in a managed file. In this particular case, the `readerTask` in [IpcTraceTest.cs](https://github.com/dotnet/runtime/blob/main/src/tests/tracing/eventpipe/common/IpcTraceTest.cs#L210). The test is large (100M with symbols) and I will keep a local copy in case its needed. ``` /simpleprovidervalidation/native$ lldb simpleprovidervalidation (lldb) target create "simpleprovidervalidation" Current executable set to './artifacts/tests/coreclr/linux.x64.Debug/tracing/eventpipe/simpleprovidervalidation/simpleprovidervalidation/native/simpleprovidervalidation' (x86_64). (lldb) breakpoint set --file IpcTraceTest.cs --line 213 error: need to add support for DW_TAG_base_type 'void' encoded with DW_ATE = 0x0, bit_size = 0 Breakpoint 1: 2 locations. (lldb) version lldb version 10.0.0 ```
Author: LakshanF
Assignees: LakshanF
Labels: `area-NativeAOT-coreclr`
Milestone: 8.0.0