Skip to content

Commit 559515a

Browse files
committed
remove path that sets rebase_exec to false in posixDYLD
1 parent b82f640 commit 559515a

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -108,25 +108,6 @@ void DynamicLoaderPOSIXDYLD::DidAttach() {
108108
// if we dont have a load address we cant re-base
109109
bool rebase_exec = load_offset != LLDB_INVALID_ADDRESS;
110110

111-
<<<<<<< HEAD
112-
=======
113-
// if we have a valid executable
114-
if (executable_sp.get()) {
115-
lldb_private::ObjectFile *obj = executable_sp->GetObjectFile();
116-
if (obj) {
117-
// don't rebase if the module already has a load address
118-
Target &target = m_process->GetTarget();
119-
Address addr = obj->GetImageInfoAddress(&target);
120-
addr_t load_addr = addr.GetLoadAddress(&target);
121-
if (load_addr != LLDB_INVALID_ADDRESS)
122-
rebase_exec = false;
123-
}
124-
} else {
125-
// no executable, nothing to re-base
126-
rebase_exec = false;
127-
}
128-
129-
>>>>>>> 7aae643a0970 (Get TLS variables to work for minidump, add a test that the value is accessable correctly)
130111
// if the target executable should be re-based
131112
if (rebase_exec || IsCoreFile()) {
132113
ModuleList module_list;

0 commit comments

Comments
 (0)