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()(
131131 auto *arguments = request.getObject (" arguments" );
132132 auto *source = arguments->getObject (" source" );
133133 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);
137138 const auto end_line =
138139 GetInteger<uint64_t >(arguments, " endLine" ).value_or (start_line);
139140 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 {
2727SourceBreakpoint::SourceBreakpoint (DAP &dap, const llvm::json::Object &obj)
2828 : Breakpoint(dap, obj),
2929 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)) {}
3234
3335void SourceBreakpoint::SetBreakpoint (const llvm::StringRef source_path) {
3436 lldb::SBFileSpecList module_list;
You can’t perform that action at this time.
0 commit comments