llvm-project/lldb/source
Raphael Isemann ccd9091d4a [lldb][NFC] Don't let Process inherit from UserID
I noticed that Process is inheriting from UserID to store its PID value. This patch
replaces this with a dedicated field in the Process class. This is NFC, but has some
small effects on the code using Process:
* `GetID()` now returns a `lldb::pid_t` like all other process code instead of `lldb::user_id_t`. Both are typedefs for `uint64_t`, so no change in behaviour.
* The equality operators defined for UserID no longer accept Process instances.
* Removes the inherited method `Process::Clear()` which didn't actually clear anything beside the PID value.

We maybe should also remove the getters/setters to `S/GetPID` or something like that. I can update all the code for that
in a follow-up NFC commit.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D91699
2020-11-18 14:33:48 +01:00
..
API [lldb] Propagate llvm::Error to report_fatal_error 2020-11-10 08:19:47 -08:00
Breakpoint [lldb][NFC] Use llvm::is_contained instead of std::find in a few places 2020-08-13 14:11:28 +02:00
Commands [Command] Fix accidental word concatenation in Options.td 2020-11-10 16:13:39 -08:00
Core [lldb] Make GetSelectedOrDummyTarget return the target by reference (NFC) 2020-11-09 15:42:27 -08:00
DataFormatters [lldb/DataFormatters] Display null C++ pointers as nullptr 2020-11-12 15:24:06 -08:00
Expression [lldb/DataFormatters] Display null C++ pointers as nullptr 2020-11-12 15:24:06 -08:00
Host [lldb][NFC] Move OptionDefinition from lldb-private-types.h to its own Utility header 2020-11-12 15:30:26 +01:00
Initialization [lldb] Always record both the working and home directory. 2020-09-02 20:53:11 -07:00
Interpreter [lldb][NFC] Move OptionDefinition from lldb-private-types.h to its own Utility header 2020-11-12 15:30:26 +01:00
Plugins [LLDB] Fix SVE reginfo for sequential offset in g packet 2020-11-17 17:18:34 +05:00
Symbol [lldb][ObjectFile] Relocate sections for in-memory objects (e.g. received via JITLoaderGDB) 2020-11-10 11:37:53 +01:00
Target [lldb][NFC] Don't let Process inherit from UserID 2020-11-18 14:33:48 +01:00
Utility [intel-pt][trace] Implement a "get supported trace type" packet 2020-11-11 10:35:58 -08:00
CMakeLists.txt Remove HAVE_VCS_VERSION_INC, not needed 2020-10-29 13:09:05 -07:00
lldb.cpp Remove HAVE_VCS_VERSION_INC, not needed 2020-10-29 13:09:05 -07:00