lldb not working when C module includes a header outside of it's /include dir

Hi All,

When C module includes a header outside of module's include/ directory and
not residing in /usr/local/include or /usr/include, lldb stops showing variable
values for the entire application.

I've created a ticket with a test project and additional details in the bug tracker,
any help is appreciated:

Andrey

Hi All,

Update: I've found that debugging works if C module is in a separate repository. So, this problem is only present if there are two modules in Sources/ dir of the same repo. It doesn't matter if headers are located in /usr/local/include or in other location.

Andrey

···

On 09 Nov 2016, at 22:48, Andrey Fidrya <af@zabiyaka.com> wrote:

Hi All,

When C module includes a header outside of module's include/ directory and
not residing in /usr/local/include or /usr/include, lldb stops showing variable
values for the entire application.

I've created a ticket with a test project and additional details in the bug tracker,
any help is appreciated:
[SR-3169] lldb stops working when C module includes a header outside of module's include/ dir · Issue #4577 · apple/llvm-project · GitHub

Andrey

Could you put the working example in the bug as well?

Jim

···

On Nov 10, 2016, at 11:39 AM, Andrey Fidrya via swift-users <swift-users@swift.org> wrote:

Hi All,

Update: I've found that debugging works if C module is in a separate repository. So, this problem is only present if there are two modules in Sources/ dir of the same repo. It doesn't matter if headers are located in /usr/local/include or in other location.

Andrey

On 09 Nov 2016, at 22:48, Andrey Fidrya <af@zabiyaka.com> wrote:

Hi All,

When C module includes a header outside of module's include/ directory and
not residing in /usr/local/include or /usr/include, lldb stops showing variable
values for the entire application.

I've created a ticket with a test project and additional details in the bug tracker,
any help is appreciated:
[SR-3169] lldb stops working when C module includes a header outside of module's include/ dir · Issue #4577 · apple/llvm-project · GitHub

Andrey

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users