[lldb/Plugin] Add breakpoint setting support to ScriptedProcess
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Fri, 14 Apr 2023 23:42:59 +0000 (16:42 -0700)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 25 Apr 2023 22:02:34 +0000 (15:02 -0700)
commitad03aeadfb72e9c872b297bbaedbf46ebac3572c
tree6a05ee1f4fc41824f8cf7617c0951d6a726c4c3f
parent482a0ad5ba72d2c306afd2d529f155554eadcd8a
[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>
lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp
lldb/source/Plugins/Process/scripted/ScriptedProcess.h