[Lldb-commits] [PATCH] D20990: Don't remove PIE executables when using svr4 packets

Francis Ricci via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 3 15:17:15 PDT 2016


fjricci updated this revision to Diff 59633.
fjricci added a comment.

Fix curly-brace style


http://reviews.llvm.org/D20990

Files:
  source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

Index: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
===================================================================
--- source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -4878,8 +4878,11 @@
             if (!found)
             {
                 lldb_private::ObjectFile * obj = loaded_module->GetObjectFile ();
-                if (obj && obj->GetType () != ObjectFile::Type::eTypeExecutable)
+                if (obj && obj->GetType () != ObjectFile::Type::eTypeExecutable &&
+                    loaded_module.get() != target.GetExecutableModulePointer())
+                {
                     removed_modules.Append (loaded_module);
+                }
             }
         }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20990.59633.patch
Type: text/x-patch
Size: 768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160603/82f22c4c/attachment.bin>


More information about the lldb-commits mailing list