[llvm] [MC][DWARF] Use target (non-native) path separators when building DWARF directory-tables (PR #115888)
Jeremy Morse via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 13 10:05:59 PST 2024
jmorse wrote:
> Hrm :/ that seems a bit problematic... (since at compile time we can't know which OS you'll be remote debugging from) - would it be reasonable to always use path separators that match the target, and have consumers do remapping as needed?
I'd say so -- interpreting the "target" as the triple here, which is what this patch implements: when targeting the PS5 triple it uses windows path separators when constructing the linetable header, plus there's a flag for testing. Perhaps there's a gap in meaning between "target" and "triple" though?
I don't believe we're unique here, in a previous life doing embedded systems things I had a few proprietary connect-to-the-device debug adapters that were Windows only, but with Linux toolchains available too. Certainly not a common use case.
https://github.com/llvm/llvm-project/pull/115888
More information about the llvm-commits
mailing list