llvm-project/lldb
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
..
bindings GetModule, GetExeModule methods added 2020-10-29 23:44:51 +03:00
cmake Fix "Unknown arguments specified" to if in lldb 2020-10-21 07:24:53 -07:00
docs [intel-pt][trace] Implement a "get supported trace type" packet 2020-11-11 10:35:58 -08:00
examples [crashlog] Implement parser for JSON encoded crashlogs 2020-11-16 13:50:37 -08:00
include/lldb [lldb][NFC] Don't let Process inherit from UserID 2020-11-18 14:33:48 +01:00
packages/Python [lldb] Add expect_var_path to test variable path results 2020-11-12 16:14:48 +01:00
resources
scripts [lldb] Correct --help output for qemu rootfs script 2020-10-29 09:57:32 +00:00
source [lldb][NFC] Don't let Process inherit from UserID 2020-11-18 14:33:48 +01:00
test [lldb] Fix a couple of remote llgs tests 2020-11-18 11:36:45 +00:00
third_party/Python/module
tools [debugserver] Add option to propagate SIGSEGV to target process 2020-11-17 09:27:52 -08:00
unittests [lldb] [Process/FreeBSDRemote] Access debug registers via offsets 2020-11-16 13:03:01 +01:00
utils [lldb] Delete lldb/utils/test 2020-10-28 12:06:02 -07:00
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt [lldb] Enable cmake policy CMP0077 for option() 2020-10-17 00:16:24 -07:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py