================
@@ -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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to