[GSoC 2019] Swift debugging support on Linux

gsoc-2019
(Yuta Saito) #1

Hello, I'm Yuta Saito a freshman student in Japan.

I am interested in participating in GSoC2019 and implementing this feature.

I already have some knowledge of the runtime library of Swift and I've presented about it in "try! Swift" which is an international Swift conference.

I started investigating apple/swift-lldb to implement data structure formatters. I'd like to ask where the documentation of the difference of data structures between platforms is.

Thank you.

1 Like
(Davide C. C. Italiano) #2

I'd recommend just poking stuff around and try to find something that doesn't work.
Once you have a more concrete example, I'll try helping you to fix it.

(Yuta Saito) #3

I've tried to build swift-lldb in Docker but faced memory problem similar to this. It's difficult to prepare real Ubuntu machine. Unfortunately I'll change my topic.
Thanks

(Argyrios Kyrtzidis) #4

It's better if you use lld as the linker, make sure it is available and use -DLLVM_ENABLE_LLD=ON in CMake flags.

(Adrian Prantl) #5

Have you tried building with -DLLVM_USE_SPLIT_DWARF=1?

(Yuta Saito) #6

@Adrian_Prantl @akyrtzi
Thank you for your advice! I succeeded building.