[Lldb-commits] [lldb] be9b79f - [lldb] Remove commented out code/logging in BreakpointSiteList (NFC)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue May 30 17:28:33 PDT 2023


Author: Jonas Devlieghere
Date: 2023-05-30T17:27:58-07:00
New Revision: be9b79fb14ce0776e147860c9fbffc84ea7b39e6

URL: https://github.com/llvm/llvm-project/commit/be9b79fb14ce0776e147860c9fbffc84ea7b39e6
DIFF: https://github.com/llvm/llvm-project/commit/be9b79fb14ce0776e147860c9fbffc84ea7b39e6.diff

LOG: [lldb] Remove commented out code/logging in BreakpointSiteList (NFC)

Added: 
    

Modified: 
    lldb/source/Breakpoint/BreakpointSiteList.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Breakpoint/BreakpointSiteList.cpp b/lldb/source/Breakpoint/BreakpointSiteList.cpp
index 32a2f24d411a1..ab15da82ea450 100644
--- a/lldb/source/Breakpoint/BreakpointSiteList.cpp
+++ b/lldb/source/Breakpoint/BreakpointSiteList.cpp
@@ -48,15 +48,8 @@ bool BreakpointSiteList::ShouldStop(StoppointCallbackContext *context,
   return true;
 }
 lldb::break_id_t BreakpointSiteList::FindIDByAddress(lldb::addr_t addr) {
-  BreakpointSiteSP bp = FindByAddress(addr);
-  if (bp) {
-    // DBLogIf(PD_LOG_BREAKPOINTS, "BreakpointSiteList::%s ( addr = 0x%8.8"
-    // PRIx64 " ) => %u", __FUNCTION__, (uint64_t)addr, bp->GetID());
+  if (BreakpointSiteSP bp = FindByAddress(addr))
     return bp.get()->GetID();
-  }
-  // DBLogIf(PD_LOG_BREAKPOINTS, "BreakpointSiteList::%s ( addr = 0x%8.8"
-  // PRIx64
-  // " ) => NONE", __FUNCTION__, (uint64_t)addr);
   return LLDB_INVALID_BREAK_ID;
 }
 


        


More information about the lldb-commits mailing list