[Lldb-commits] [lldb] [lldb-dap] In DAP unit tests, add helpers for loading a CoreFile. (PR #140738)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Wed May 21 23:30:51 PDT 2025
================
@@ -10,8 +10,16 @@ add_lldb_unittest(DAPTests
VariablesTest.cpp
LINK_LIBS
+ liblldb
lldbDAP
+ lldbUtilityHelpers
LLVMTestingSupport
LINK_COMPONENTS
Support
)
+
+set(test_inputs
+ linux-x86_64.out
+ linux-x86_64.core
----------------
labath wrote:
> I assume Pavel's talking about the memory just being bytes.
No, that's actually the best you can get (without inventing something completely new), even with minidumps. With core files you just get nothing because they don't fit yaml2obj's model of elf files. elf2yaml's main use case is (unlinked) object files produced by the compiler, which have only section headers (no program headers). OTOH, core files consist of *only* program headers, and the tool just doesn't handle that. These days I *think* it's possible to generate a somewhat realistic core file with yaml2obj, but you have to write the yaml by hand. obj2yaml won't generate it for you.
https://github.com/llvm/llvm-project/pull/140738
More information about the lldb-commits
mailing list