[Lldb-commits] [lldb] Add the ability to break on call-site locations, improve inline stepping (PR #112939)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Fri Oct 18 11:28:04 PDT 2024
================
@@ -508,8 +508,20 @@ void BreakpointLocation::GetDescription(Stream *s,
s->PutCString("re-exported target = ");
else
s->PutCString("where = ");
+
+ // If there's a preferred line entry for printing, use that.
+ bool show_function_info = true;
+ if (GetPreferredLineEntry()) {
+ sc.line_entry = *GetPreferredLineEntry();
----------------
medismailben wrote:
nit: avoid 2 function calls
```suggestion
if (auto may_be_line_entry = GetPreferredLineEntry()) {
sc.line_entry = *may_be_line_entry;
```
https://github.com/llvm/llvm-project/pull/112939
More information about the lldb-commits
mailing list