[all-commits] [llvm/llvm-project] 2451cb: [lldb/Reproducers] Intercept the FindProcesses API
Jonas Devlieghere via All-commits
all-commits at lists.llvm.org
Fri Mar 13 09:31:51 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 2451cbf07bbc500718c30a9e9447385f7235707b
https://github.com/llvm/llvm-project/commit/2451cbf07bbc500718c30a9e9447385f7235707b
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2020-03-13 (Fri, 13 Mar 2020)
Changed paths:
M lldb/include/lldb/Host/Host.h
M lldb/include/lldb/Utility/ProcessInfo.h
M lldb/source/Commands/CommandObjectReproducer.cpp
M lldb/source/Host/common/Host.cpp
M lldb/source/Host/linux/Host.cpp
M lldb/source/Host/macosx/objcxx/Host.mm
M lldb/source/Host/netbsd/Host.cpp
M lldb/source/Host/openbsd/Host.cpp
M lldb/source/Utility/ProcessInfo.cpp
A lldb/test/API/functionalities/reproducers/attach/Makefile
A lldb/test/API/functionalities/reproducers/attach/TestReproducerAttach.py
A lldb/test/API/functionalities/reproducers/attach/main.cpp
Log Message:
-----------
[lldb/Reproducers] Intercept the FindProcesses API
This patch extends the reproducers to intercept calls to FindProcesses.
During capture it serializes the ProcessInstanceInfoList returned by the
API. During replay, it returns the serialized data instead of querying
the host.
The motivation for this patch is supporting the process attach workflow
during replay. Without this change it would incorrectly look for the
inferior on the host during replay and failing if no matching process
was found.
Differential revision: https://reviews.llvm.org/D75877
More information about the All-commits
mailing list