summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectBreakpoint.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2018-08-30 15:11:00 +0000
committerAdrian Prantl <aprantl@apple.com>2018-08-30 15:11:00 +0000
commit431b158400320fdeac946799d2087257e2bdc26c (patch)
tree30f2861f026750ed636d0d975b1ab52728b8c257 /lldb/source/Commands/CommandObjectBreakpoint.cpp
parent5e98c2b69db07905348e8d5b1778bbba94c56531 (diff)
downloadbcm5719-llvm-431b158400320fdeac946799d2087257e2bdc26c.tar.gz
bcm5719-llvm-431b158400320fdeac946799d2087257e2bdc26c.zip
Support setting a breakpoint by FileSpec+Line+Column in the SBAPI.
This patch extends the SBAPI to allow for setting a breakpoint not only at a specific line, but also at a specific (minimum) column. When a column is specified, it will try to find an exact match or the closest match on the same line that comes after the specified location. Differential Revision: https://reviews.llvm.org/D51461 llvm-svn: 341078
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectBreakpoint.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp
index fb0553e482d..96b4fc3908b 100644
--- a/lldb/source/Commands/CommandObjectBreakpoint.cpp
+++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp
@@ -696,7 +696,8 @@ protected:
bp_sp = target->CreateBreakpoint(&(m_options.m_modules),
file,
- m_options.m_line_num,
+ m_options.m_line_num,
+ m_options.m_column,
m_options.m_offset_addr,
check_inlines,
m_options.m_skip_prologue,
OpenPOWER on IntegriCloud