[Lldb-commits] [lldb] [lldb] Support specifying a language for breakpoint conditions (PR #147603)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 9 09:18:28 PDT 2025
================
@@ -173,7 +173,7 @@ const char *SBBreakpointLocation::GetCondition() {
std::lock_guard<std::recursive_mutex> guard(
loc_sp->GetTarget().GetAPIMutex());
- return ConstString(loc_sp->GetConditionText()).GetCString();
+ return ConstString(loc_sp->GetCondition().GetText()).GetCString();
----------------
JDevlieghere wrote:
We use `ConstString` at the SB API level to make sure the pointers we had out point into the string pool and remain valid. That way clients don't have to worry about their lifetime which is really an implementation detail.
https://github.com/llvm/llvm-project/pull/147603
More information about the lldb-commits
mailing list