llvm-project/lldb
Jordan Rupprecht c5aa63dd56 [lldb/Host] Add missing proc states
The /proc/<pid>/status parsing is missing a few cases:
- Idle
- Parked
- Dead

If we encounter an unknown proc state, this leads to an msan warning. In reality, we only check that the state != Zombie, so it doesn't really matter that we handle all cases, but handle them anyway (current list: [1]). Also explicitly set it to unknown if we encounter an unknown state. There will still be an msan warning if the proc entry has no `State:` line, but that should not happen.

Use a StringSwitch to make the handling of proc states a little more compact.

[1] https://github.com/torvalds/linux/blob/master/fs/proc/array.c

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D86818
2020-09-02 08:24:06 -07:00
..
bindings [lldb/Target] Add custom interpreter option to `platform shell` 2020-09-02 16:36:10 +02:00
cmake [lldb] Remove redundant call to FindBacktrace (NFC) 2020-08-20 22:41:49 -07:00
docs [lldb/interpreter] Improve REPL init file compatibility 2020-09-02 01:21:22 +02:00
examples Harmonize Python shebang 2020-07-16 21:53:45 +02:00
include/lldb [lldb/Target] Add custom interpreter option to `platform shell` 2020-09-02 16:36:10 +02:00
packages/Python [lldb] Fix TestCompletion's pid completion failing randomly 2020-08-31 12:22:41 +02:00
resources
scripts Harmonize Python shebang 2020-07-16 21:53:45 +02:00
source [lldb/Host] Add missing proc states 2020-09-02 08:24:06 -07:00
test [lldb/Target] Add custom interpreter option to `platform shell` 2020-09-02 16:36:10 +02:00
third_party/Python/module Revert "[lldb] temporary commit to see why a test is failing only on lldb-aarch64-ubuntu" 2020-08-05 11:55:02 +02:00
tools Simplify Symbol Status Message to Only Debug Info Size 2020-09-01 16:25:20 -07:00
unittests [Test] Simplify DWARF test cases. NFC. 2020-08-31 14:03:48 +08:00
utils [lldb] Hoist --framework argument out of LLDB_TEST_COMMON_ARGS (NFC) 2020-08-28 18:15:33 -07:00
.clang-format
.clang-tidy [lldb] Add .clang-tidy with customization to disable readability-identifier-naming 2020-03-09 12:50:28 -07:00
.gitignore
CMakeLists.txt Create ${swig_target}-scripts target instead of lldb-python-scripts 2020-08-22 19:36:37 -07:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT
use_lldb_suite_root.py