================
@@ -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 (auto preferred = GetPreferredLineEntry()) {
+ sc.line_entry = *preferred;
+ // FIXME: We're going to get the function name wrong when the preferred
+ // line entry is not the lowest one. For now, just leave the function
+ // out in this case, but we really should also figure out how to easily
+ // fake the function name here.
----------------
jimingham wrote:
I added one more change here, since the intention is that you cannot change the
PC of the breakpoint Location by setting a PreferredLineEntry, I changed the
code to actually check that when you call SetPreferredLineEntry. I put in an
assert in the setter, so we can catch any violations of this in the testsuite,
and then if this happens IRL, I made the BreakpointLocation log the event and
ignore the setting.
https://github.com/llvm/llvm-project/pull/112939
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits