[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Tue Oct 7 13:05:06 PDT 2025
================
@@ -155,6 +160,23 @@ void BreakpointResolverScripted::GetDescription(Stream *s) {
s->Printf("python class = %s", m_class_name.c_str());
}
+std::optional<std::string> BreakpointResolverScripted::GetLocationDescription(
+ lldb::BreakpointLocationSP bp_loc_sp, lldb::DescriptionLevel level) {
+ CreateImplementationIfNeeded(GetBreakpoint());
+ if (m_interface_sp)
+ return m_interface_sp->GetLocationDescription(bp_loc_sp, level);
+ return {};
+}
+
+lldb::BreakpointLocationSP
+BreakpointResolverScripted::WasHit(lldb::StackFrameSP frame_sp,
+ lldb::BreakpointLocationSP bp_loc_sp) {
+ if (m_interface_sp)
+ return m_interface_sp->WasHit(frame_sp, bp_loc_sp);
+
----------------
JDevlieghere wrote:
Nit: `GetLocationDescription` doesn't have a newline here. Let's pick one and stick with it.
https://github.com/llvm/llvm-project/pull/158128
More information about the lldb-commits
mailing list