1 //===-- State.cpp ---------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Utility/State.h"
12 using namespace lldb_private
;
14 const char *lldb_private::StateAsCString(StateType state
) {
44 const char *lldb_private::GetPermissionsAsCString(uint32_t permissions
) {
45 switch (permissions
) {
48 case ePermissionsWritable
:
50 case ePermissionsReadable
:
52 case ePermissionsExecutable
:
54 case ePermissionsReadable
| ePermissionsWritable
:
56 case ePermissionsReadable
| ePermissionsExecutable
:
58 case ePermissionsWritable
| ePermissionsExecutable
:
60 case ePermissionsReadable
| ePermissionsWritable
| ePermissionsExecutable
:
68 bool lldb_private::StateIsRunningState(StateType state
) {
89 bool lldb_private::StateIsStoppedState(StateType state
, bool must_exist
) {
106 case eStateSuspended
: