[Lldb-commits] [lldb] 9bf0318 - Revert "[lldb] Remove timer from SBModule copy ctor"

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Mon Jan 23 09:52:19 PST 2023


Author: Dave Lee
Date: 2023-01-23T09:52:11-08:00
New Revision: 9bf03187bd29f42902183e4bdac9b7f2d3008d00

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

LOG: Revert "[lldb] Remove timer from SBModule copy ctor"

This reverts commit 84c6129c943135e2c32b9254f08d0a2e7b21116a.

Added: 
    

Modified: 
    lldb/source/API/SBModule.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index c6bda9da9f61..e7c2b451eb9d 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -43,7 +43,9 @@ SBModule::SBModule(const SBModuleSpec &module_spec) {
     SetSP(module_sp);
 }
 
-SBModule::SBModule(const SBModule &rhs) = default;
+SBModule::SBModule(const SBModule &rhs) : m_opaque_sp(rhs.m_opaque_sp) {
+  LLDB_INSTRUMENT_VA(this, rhs);
+}
 
 SBModule::SBModule(lldb::SBProcess &process, lldb::addr_t header_addr) {
   LLDB_INSTRUMENT_VA(this, process, header_addr);


        


More information about the lldb-commits mailing list