Skip to content

Commit 5e8830c

Browse files
committed
remove CreateBreakpoint
1 parent daff2ac commit 5e8830c

File tree

2 files changed

+0
-56
lines changed

2 files changed

+0
-56
lines changed

lldb/tools/lldb-dap/JSONUtils.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -354,23 +354,6 @@ llvm::json::Value CreateScope(const llvm::StringRef name,
354354
return llvm::json::Value(std::move(object));
355355
}
356356

357-
protocol::Breakpoint
358-
CreateBreakpoint(BreakpointBase *bp,
359-
std::optional<llvm::StringRef> request_path,
360-
std::optional<uint32_t> request_line,
361-
std::optional<uint32_t> request_column) {
362-
protocol::Breakpoint breakpoint = bp->ToProtocolBreakpoint();
363-
if (request_path && !breakpoint.source)
364-
breakpoint.source = CreateSource(*request_path);
365-
366-
// We try to add request_line as a fallback
367-
if (request_line && !breakpoint.line)
368-
breakpoint.line = *request_line;
369-
if (request_column && !breakpoint.column)
370-
breakpoint.column = *request_column;
371-
return breakpoint;
372-
}
373-
374357
static uint64_t GetDebugInfoSizeInSection(lldb::SBSection section) {
375358
uint64_t debug_info_size = 0;
376359
llvm::StringRef section_name(section.GetName());
@@ -459,12 +442,6 @@ llvm::json::Value CreateModule(lldb::SBTarget &target, lldb::SBModule &module) {
459442
return llvm::json::Value(std::move(object));
460443
}
461444

462-
void AppendBreakpoint(BreakpointBase *bp, llvm::json::Array &breakpoints,
463-
std::optional<llvm::StringRef> request_path,
464-
std::optional<uint32_t> request_line) {
465-
breakpoints.emplace_back(CreateBreakpoint(bp, request_path, request_line));
466-
}
467-
468445
// "Event": {
469446
// "allOf": [ { "$ref": "#/definitions/ProtocolMessage" }, {
470447
// "type": "object",

lldb/tools/lldb-dap/JSONUtils.h

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -198,39 +198,6 @@ GetStringMap(const llvm::json::Object &obj, llvm::StringRef key);
198198
void FillResponse(const llvm::json::Object &request,
199199
llvm::json::Object &response);
200200

201-
/// Converts breakpoint location to a debug adapter protocol "Breakpoint".
202-
///
203-
/// \param[in] bp
204-
/// A LLDB breakpoint object to convert into a JSON value
205-
///
206-
/// \param[in] request_path
207-
/// An optional source path to use when creating the "Source" object of this
208-
/// breakpoint. If not specified, the "Source" object is created from the
209-
/// breakpoint's address' LineEntry. It is useful to ensure the same source
210-
/// paths provided by the setBreakpoints request are returned to the IDE.
211-
///
212-
/// \param[in] request_line
213-
/// An optional line to use when creating the resulting "Breakpoint" object.
214-
/// It is used if the breakpoint has no valid locations.
215-
/// It is useful to ensure the same line
216-
/// provided by the setBreakpoints request are returned to the IDE as a
217-
/// fallback.
218-
///
219-
/// \param[in] request_column
220-
/// An optional column to use when creating the resulting "Breakpoint"
221-
/// object. It is used if the breakpoint has no valid locations. It is
222-
/// useful to ensure the same column provided by the setBreakpoints request
223-
/// are returned to the IDE as a fallback.
224-
///
225-
/// \return
226-
/// A "Breakpoint" JSON object with that follows the formal JSON
227-
/// definition outlined by Microsoft.
228-
protocol::Breakpoint
229-
CreateBreakpoint(BreakpointBase *bp,
230-
std::optional<llvm::StringRef> request_path = std::nullopt,
231-
std::optional<uint32_t> request_line = std::nullopt,
232-
std::optional<uint32_t> request_column = std::nullopt);
233-
234201
/// Converts a LLDB module to a VS Code DAP module for use in "modules" events.
235202
///
236203
/// \param[in] target

0 commit comments

Comments
 (0)