File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,10 @@ void BreakpointLocationsRequestHandler::operator()(
131
131
auto *arguments = request.getObject (" arguments" );
132
132
auto *source = arguments->getObject (" source" );
133
133
std::string path = GetString (source, " path" ).str ();
134
- const auto start_line = GetInteger<uint64_t >(arguments, " line" ).value_or (0 );
135
- const auto start_column =
136
- GetInteger<uint64_t >(arguments, " column" ).value_or (0 );
134
+ const auto start_line = GetInteger<uint64_t >(arguments, " line" )
135
+ .value_or (LLDB_INVALID_LINE_NUMBER);
136
+ const auto start_column = GetInteger<uint64_t >(arguments, " column" )
137
+ .value_or (LLDB_INVALID_COLUMN_NUMBER);
137
138
const auto end_line =
138
139
GetInteger<uint64_t >(arguments, " endLine" ).value_or (start_line);
139
140
const auto end_column = GetInteger<uint64_t >(arguments, " endColumn" )
Original file line number Diff line number Diff line change @@ -27,8 +27,10 @@ namespace lldb_dap {
27
27
SourceBreakpoint::SourceBreakpoint (DAP &dap, const llvm::json::Object &obj)
28
28
: Breakpoint(dap, obj),
29
29
logMessage (std::string(GetString(obj, " logMessage" ))),
30
- line(GetInteger<uint64_t >(obj, " line" ).value_or(0 )),
31
- column(GetInteger<uint64_t >(obj, " column" ).value_or(0 )) {}
30
+ line(
31
+ GetInteger<uint64_t >(obj, " line" ).value_or(LLDB_INVALID_LINE_NUMBER)),
32
+ column(GetInteger<uint64_t >(obj, " column" )
33
+ .value_or(LLDB_INVALID_COLUMN_NUMBER)) {}
32
34
33
35
void SourceBreakpoint::SetBreakpoint (const llvm::StringRef source_path) {
34
36
lldb::SBFileSpecList module_list;
You can’t perform that action at this time.
0 commit comments