[Lldb-commits] [PATCH] D18697: Fix a bug in linux core file handling

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 4 09:57:16 PDT 2016


labath marked an inline comment as done.
labath added a comment.

I have also added a test which loads two core files with the same pid. (Based on very little experimentation) everything seems to be working ok for that case.


================
Comment at: source/Plugins/Process/elf-core/ProcessElfCore.cpp:644-647
@@ +643,6 @@
+{
+    info.Clear();
+    info.SetProcessID(GetID());
+    info.SetArchitecture(GetArchitecture());
+    lldb::ModuleSP module_sp = GetTarget().GetExecutableModule();
+    if (module_sp)
----------------
It get's parsed and set as the main target module in `DoLoadCore`, so I load the info from there.


http://reviews.llvm.org/D18697





More information about the lldb-commits mailing list