aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/scripted/ScriptedProcess.h
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2023-04-14 16:42:59 -0700
committerMed Ismail Bennani <medismail.bennani@gmail.com>2023-04-25 15:02:34 -0700
commitad03aeadfb72e9c872b297bbaedbf46ebac3572c (patch)
tree6a05ee1f4fc41824f8cf7617c0951d6a726c4c3f /lldb/source/Plugins/Process/scripted/ScriptedProcess.h
parent482a0ad5ba72d2c306afd2d529f155554eadcd8a (diff)
downloadllvm-ad03aeadfb72e9c872b297bbaedbf46ebac3572c.zip
llvm-ad03aeadfb72e9c872b297bbaedbf46ebac3572c.tar.gz
llvm-ad03aeadfb72e9c872b297bbaedbf46ebac3572c.tar.bz2
[lldb/Plugin] Add breakpoint setting support to ScriptedProcess
This patch adds support for breakpoint setting to Scripted Processes. For now, Scripted Processes only support setting software breakpoints. When doing interactive scripted process debugging, it makes use of the memory writing capability to write the trap opcodes in the memory of the driving process. However the real process' target doesn't keep track of the breakpoints that got added by the scripted process. This is a design that we might need to change in the future, since we'll probably need to do some book keeping to handle breakpoints that were set by different scripted processes. Differential Revision: https://reviews.llvm.org/D145296 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/source/Plugins/Process/scripted/ScriptedProcess.h')
-rw-r--r--lldb/source/Plugins/Process/scripted/ScriptedProcess.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/scripted/ScriptedProcess.h b/lldb/source/Plugins/Process/scripted/ScriptedProcess.h
index 594bd09..24b5a31 100644
--- a/lldb/source/Plugins/Process/scripted/ScriptedProcess.h
+++ b/lldb/source/Plugins/Process/scripted/ScriptedProcess.h
@@ -74,6 +74,8 @@ public:
size_t DoWriteMemory(lldb::addr_t vm_addr, const void *buf, size_t size,
Status &error) override;
+ Status EnableBreakpointSite(BreakpointSite *bp_site) override;
+
ArchSpec GetArchitecture();
Status