aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-01-24 11:48:25 +0000
committerPavel Labath <labath@google.com>2017-01-24 11:48:25 +0000
commit8198db30f3635b91c7719347006d8344527fcef9 (patch)
tree6ec51a15dbff6f59d3ada265ccae9755085cdc7e /lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
parente1ec9072f638b4d3aede8e840cb61e26553fd42b (diff)
downloadllvm-8198db30f3635b91c7719347006d8344527fcef9.tar.gz
llvm-8198db30f3635b91c7719347006d8344527fcef9.tar.bz2
llvm-8198db30f3635b91c7719347006d8344527fcef9.zip
Add format_provider for lldb::StateType
Reviewers: clayborg Subscribers: mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D29036 llvm-svn: 292920
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
index a20b709d58cb..8032a773b097 100644
--- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
+++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp
@@ -567,7 +567,7 @@ void NativeProcessLinux::MonitorCallback(lldb::pid_t pid, bool exited,
pid,
thread_found ? "stopped tracking thread metadata"
: "thread metadata not found",
- StateAsCString(GetState()));
+ GetState());
// The main thread exited. We're done monitoring. Report to delegate.
SetExitStatus(convert_pid_status_to_exit_type(status),
convert_pid_status_to_return_code(status), nullptr, true);
@@ -1033,7 +1033,7 @@ void NativeProcessLinux::MonitorSignal(const siginfo_t &info,
LLDB_LOG(log,
"pid {0} tid {1}, thread was already marked as a stopped "
"state (state={2}), leaving stop signal as is",
- GetID(), thread.GetID(), StateAsCString(thread_state));
+ GetID(), thread.GetID(), thread_state);
SignalIfAllThreadsStopped();
}
@@ -1263,7 +1263,7 @@ Error NativeProcessLinux::Resume(const ResumeActionList &resume_actions) {
}
LLDB_LOG(log, "processing resume action state {0} for pid {1} tid {2}",
- StateAsCString(action->state), GetID(), thread_sp->GetID());
+ action->state, GetID(), thread_sp->GetID());
switch (action->state) {
case eStateRunning:
@@ -1393,7 +1393,7 @@ Error NativeProcessLinux::Kill() {
case StateType::eStateUnloaded:
// Nothing to do - the process is already dead.
LLDB_LOG(log, "ignored for PID {0} due to current state: {1}", GetID(),
- StateAsCString(m_state));
+ m_state);
return error;
case StateType::eStateConnected:
@@ -2273,7 +2273,7 @@ Error NativeProcessLinux::ResumeThread(NativeThreadLinux &thread,
return step_result;
}
default:
- LLDB_LOG(log, "Unhandled state {0}.", StateAsCString(state));
+ LLDB_LOG(log, "Unhandled state {0}.", state);
llvm_unreachable("Unhandled state for resume");
}
}