File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 10
10
#include " BreakpointBase.h"
11
11
#include " DAP.h"
12
12
#include " JSONUtils.h"
13
+ #include " ProtocolUtils.h"
13
14
#include " lldb/API/SBBreakpoint.h"
14
15
#include " lldb/API/SBFileSpecList.h"
15
16
#include " lldb/API/SBFrame.h"
@@ -44,7 +45,7 @@ llvm::Error SourceBreakpoint::SetBreakpoint(const protocol::Source &source) {
44
45
return llvm::createStringError (llvm::inconvertibleErrorCode (),
45
46
" Invalid line number." );
46
47
47
- if (source. sourceReference ) {
48
+ if (IsAssemblySource ( source) ) {
48
49
// Breakpoint set by assembly source.
49
50
std::optional<lldb::addr_t > raw_addr =
50
51
m_dap.GetSourceReferenceAddress (*source.sourceReference );
Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ class SourceBreakpoint : public Breakpoint {
50
50
uint32_t GetColumn () const { return m_column; }
51
51
52
52
protected:
53
+ llvm::Error SetAssemblyBreakpoint (const protocol::Source &source);
54
+ llvm::Error SetPathBreakpoint (const protocol::Source &source);
55
+
53
56
// logMessage part can be either a raw text or an expression.
54
57
struct LogMessagePart {
55
58
LogMessagePart (llvm::StringRef text, bool is_expr)
You can’t perform that action at this time.
0 commit comments