aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorJacob Lalonde <jalalonde@fb.com>2024-08-27 07:33:12 -0700
committerGitHub <noreply@github.com>2024-08-27 07:33:12 -0700
commitd517b224117f760e6a7299b267256e3240c04edb (patch)
tree42b71f96962f2dc4d7f616fb1191ad64c8827f76 /lldb/source/Commands/CommandObjectProcess.cpp
parent556e9d0386a71ab2b59f94740909c6c3b6ac5f06 (diff)
downloadllvm-d517b224117f760e6a7299b267256e3240c04edb.zip
llvm-d517b224117f760e6a7299b267256e3240c04edb.tar.gz
llvm-d517b224117f760e6a7299b267256e3240c04edb.tar.bz2
[LLDB][SBSaveCore] Add selectable memory regions to SBSaveCore (#105442)
This patch adds the option to specify specific memory ranges to be included in a given core file. The current implementation lets user specified ranges either be in addition to a certain save style, or independent of them via the newly added custom enum. To achieve being inclusive of save style, I've moved from a std::vector of ranges to a RangeDataVector, and to join overlapping ranges to prevent duplication of memory ranges in the core file. As a non function bonus, when SBSavecore was initially created, the header was included in the lldb-private interfaces, and I've fixed that and moved it the forward declare as an oversight. CC @bulbazord in case we need to include that into swift.
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index 28413b7..1a5ce7de 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -25,6 +25,7 @@
#include "lldb/Interpreter/OptionArgParser.h"
#include "lldb/Interpreter/OptionGroupPythonClassWithDict.h"
#include "lldb/Interpreter/Options.h"
+#include "lldb/Symbol/SaveCoreOptions.h"
#include "lldb/Target/Platform.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/StopInfo.h"