https://github.com/bulbazord created https://github.com/llvm/llvm-project/pull/76766
BreakpointResolverAddress optionally can include the module name related to the address that gets resolved. Currently this will never work because it sets the name to itself (which is empty). >From 519f2db688dd9e13e1df88e16279359940f0d97e Mon Sep 17 00:00:00 2001 From: Alex Langford <alangf...@apple.com> Date: Tue, 2 Jan 2024 15:44:30 -0800 Subject: [PATCH] [lldb] Fix breakpoint resolver serialization bug BreakpointResolverAddress optionally can include the module name related to the address that gets resolved. Currently this will never work because it sets the name to itself (which is empty). --- lldb/source/Breakpoint/BreakpointResolverAddress.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lldb/source/Breakpoint/BreakpointResolverAddress.cpp b/lldb/source/Breakpoint/BreakpointResolverAddress.cpp index a0c628a8e299ce..dcdcea101045f7 100644 --- a/lldb/source/Breakpoint/BreakpointResolverAddress.cpp +++ b/lldb/source/Breakpoint/BreakpointResolverAddress.cpp @@ -65,13 +65,9 @@ BreakpointResolverAddress::SerializeToStructuredData() { new StructuredData::Dictionary()); SectionSP section_sp = m_addr.GetSection(); if (section_sp) { - ModuleSP module_sp = section_sp->GetModule(); - ConstString module_name; - if (module_sp) - module_name.SetCString(module_name.GetCString()); - - options_dict_sp->AddStringItem(GetKey(OptionNames::ModuleName), - module_name.GetCString()); + if (ModuleSP module_sp = section_sp->GetModule()) + options_dict_sp->AddStringItem(GetKey(OptionNames::ModuleName), + module_sp->GetObjectName().GetCString()); options_dict_sp->AddIntegerItem(GetKey(OptionNames::AddressOffset), m_addr.GetOffset()); } else { _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits