[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 05:18:04 +0000 (06:18 +0100)
commitdc82890a77fe894e90103f4465bb4c838617feff
tree9b2d7b7f77640fe72a615747bf7b79bb636e04a8
parent1d3f1eb855fcfb03b6ddb92543c02694115b5739
[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