Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
source/Plugins/OperatingSystem/Go/OperatingSystemGo.cpp | ||
---|---|---|
253 ↗ | (On Diff #54220) | To me, as someone who might accidentally wander into this part of codebase, a comment explaining that the symbols to look for differ between runtime versions would definitely be helpful. |
btw, this does not seem to follow lldb code style (braces on a new line), please reformat that.
Is it possible to query the version of the go runtime we are currently debugging and decide which symbol we look for instead of using this fallback mechanism? I think it would make the code easier to understand and also easier to add support for new runtime versions
I'm not sure how else we could identify the runtime version. I'm hoping to eventually add a producer string that has the version, but this would just be a git commit for development compilers.
A producer string would be excellent but I know it is not easy to add it to all part of the toolchain. In case of development compilers I would suggest to add the version number of the next or the previous iteration with some additional marking indicating that it is a development build so you can detect it from LLDB (e.g. 1.5+).