#ifndef LLDB_TOOLS_LLDB_VSCODE_SOURCEBREAKPOINT_H
#define LLDB_TOOLS_LLDB_VSCODE_SOURCEBREAKPOINT_H
#include "BreakpointBase.h"
#include "llvm/ADT/StringRef.h"
namespace lldb_vscode {
struct SourceBreakpoint : public BreakpointBase {
uint32_t line;
uint32_t column;
SourceBreakpoint() : BreakpointBase(), line(0), column(0) {}
SourceBreakpoint(const llvm::json::Object &obj);
void SetBreakpoint(const llvm::StringRef source_path);
};
inline bool operator<(const SourceBreakpoint &lhs,
const SourceBreakpoint &rhs) {
if (lhs.line == rhs.line)
return lhs.column < rhs.column;
return lhs.line < rhs.line;
}
}
#endif