[lldb/Plugin] Add breakpoint setting support to ScriptedProcesses.
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Sat, 4 Mar 2023 05:40:51 +0000 (21:40 -0800)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Mon, 6 Mar 2023 21:14:15 +0000 (13:14 -0800)
commitcfe06f495beb520ab366957d1108bb80c7c92832
tree2ad8b08785c292381b4f3a832fe4a6be5ef91316
parent3c33d72e7fa83beb8a9b39fb3b8ecf4ee00c697d
[lldb/Plugin] Add breakpoint setting support to ScriptedProcesses.

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>
lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp
lldb/source/Plugins/Process/scripted/ScriptedProcess.h