[PATCH] D68556: Document `LLVM_USE_SPLIT_DWARF` option

Anton Afanasyev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 30 03:35:18 PDT 2021


anton-afanasyev accepted this revision.
anton-afanasyev added a comment.
This revision is now accepted and ready to land.

In D68556#1698442 <https://reviews.llvm.org/D68556#1698442>, @dblaikie wrote:

> FWIW, the current support is incomplete - if you just turn on -gsplit-dwarf, gdb may misbehave owing to a lack of index. (you'd need to add -Wl,-gdb-index to CMAKE_*_LINKER_FLAGS)
>
> Arguably we could/should fix LLVM itself to pass that flag when using -gsplit-dwarf while tuning for gdb and/or improve the LLVM CMake build to add the flag.

Since `--gdb-index` option is added to `LLVM_USE_SPLIT_DWARF` (https://reviews.llvm.org/D108776) I think this could be landed with a couple of words added about `--gdb-index`.

BTW, the `LLVM_USE_SPLIT_DWARF` option is even documented at "GettingStarted" (https://reviews.llvm.org/D75425) already, but it's still not represented here, at full list.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68556/new/

https://reviews.llvm.org/D68556



More information about the llvm-commits mailing list