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


(Andrey Fidrya) #1

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:
https://bugs.swift.org/browse/SR-3169

Andrey


(Andrey Fidrya) #2

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:
https://bugs.swift.org/browse/SR-3169

Andrey


(Jim Ingham) #3

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:
https://bugs.swift.org/browse/SR-3169

Andrey

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