[Lldb-commits] [lldb] [lldb] Support riscv32 corefiles (PR #115408)

Alexey Merzlyakov via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 24 05:55:32 PDT 2025


AlexeyMerzlyakov wrote:

@JDevlieghere, to get coredump file, I've used [make-core.sh](https://github.com/llvm/llvm-project/blob/main/lldb/test/API/functionalities/postmortem/elf-core/make-core.sh) script on the target H/W. Generated file should be minimal, so you can set `coredump_filter` (https://man7.org/linux/man-pages/man5/core.5.html) on the target before getting core-file in order to reduce the number of unnecessary mappings written. Something like `echo 0x7 > /proc/self/coredump_filter`. I've used to choose minimal necessary bitset empirically, by trying setting different bits to 0 unless the test won't broken.

https://github.com/llvm/llvm-project/pull/115408


More information about the lldb-commits mailing list