diff options
author | Greg Clayton <gclayton@fb.com> | 2023-11-11 11:21:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-11 11:21:32 -0800 |
commit | 215bacb5dc6e7027402434a14e1153e687a4a1cf (patch) | |
tree | b0688745323c8e44e4188baf2b14b58d24c90da0 /llvm/lib/CodeGen/MachineSink.cpp | |
parent | e70d2a45ea00241035143394be28604390341f0e (diff) | |
download | llvm-215bacb5dc6e7027402434a14e1153e687a4a1cf.zip llvm-215bacb5dc6e7027402434a14e1153e687a4a1cf.tar.gz llvm-215bacb5dc6e7027402434a14e1153e687a4a1cf.tar.bz2 |
Centralize the code that figures out which memory ranges to save into core files (#71772)
Prior to this patch, each core file plugin (ObjectFileMachO.cpp and
ObjectFileMinindump.cpp) would calculate the address ranges to save in
different ways. This patch adds a new function to Process.h/.cpp:
```
Status Process::CalculateCoreFileSaveRanges(lldb::SaveCoreStyle core_style, CoreFileMemoryRanges &ranges);
```
The patch updates the ObjectFileMachO::SaveCore(...) and
ObjectFileMinindump::SaveCore(...) to use same code. This will allow
core files to be consistent with the lldb::SaveCoreStyle across
different core file creators and will allow us to add new core file
saving features that do more complex things in future patches.
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions