What if you are simultaneously debugging 2 processes with the same pid?
Does this fail?
On Fri, Apr 1, 2016 at 9:06 AM Pavel Labath <lab...@google.com> wrote:

> labath created this revision.
> labath added reviewers: clayborg, zturner.
> labath added a subscriber: lldb-commits.
>
> There was a bug in linux core file handling, where if there was a running
> process with the same
> process id as the id in the core file, the core file debugging would fail,
> as we would pull some
> pieces of information (ProcessInfo structure) from the running process
> instead of the core file.
> I fix this by routing the ProcessInfo requests through the Process class
> and overriding it in
> ProcessElfCore to return correct data.
>
> A (slightly convoluted) test is included.
>
> http://reviews.llvm.org/D18697
>
> Files:
>   include/lldb/Target/Process.h
>
> packages/Python/lldbsuite/test/functionalities/postmortem/linux-core/TestLinuxCore.py
>   source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
>   source/Plugins/Process/elf-core/ProcessElfCore.cpp
>   source/Plugins/Process/elf-core/ProcessElfCore.h
>   source/Target/Process.cpp
>
>
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to