[lldb/API] Expose Target::CreateBreakpoint(..., move_to_nearest_code) overload
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 15 Dec 2020 02:40:47 +0000 (03:40 +0100)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Tue, 15 Dec 2020 03:24:44 +0000 (04:24 +0100)
commit04701698ebaff8d0c108e590a7e55c3c5bcd4d9e
tree9e367c3a58e73938ba7446ed620282d98994de05
parent841f9c937f6e593c926a26aedf054436eb807fe6
[lldb/API] Expose Target::CreateBreakpoint(..., move_to_nearest_code) overload

This patch exposes the Target::CreateBreakpoint overload with the
boolean argument to move to the neareast code to the SBAPI.

This is useful when creating column breakpoints to restrict lldb's
resolution to the pointed source location, preventing it to go to the next
line.

rdar://72196842

Differential Revision: https://reviews.llvm.org/D93266

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/bindings/interface/SBTarget.i
lldb/include/lldb/API/SBTarget.h
lldb/source/API/SBTarget.cpp
lldb/test/API/functionalities/breakpoint/breakpoint_by_line_and_column/TestBreakpointByLineAndColumn.py