20#include "gdbsupport/common-defs.h"
28 std::string str = string_printf
34DIAGNOSTIC_ERROR_SWITCH
35 switch (this->
kind ())
39 return string_appendf (str,
", exit_status = %d", this->
exit_status ());
43 return string_appendf (str,
", sig = %s",
44 gdb_signal_to_symbol_string (this->
sig ()));
48 return string_appendf (str,
", child_ptid = %s",
52 return string_appendf (str,
", execd_pathname = %s",
68 gdb_assert_not_reached (
"invalid target_waitkind value: %d",
target_waitkind kind() const
std::string to_string() const
static const char * target_waitkind_str(target_waitkind kind)
@ TARGET_WAITKIND_NO_RESUMED
@ TARGET_WAITKIND_THREAD_EXITED
@ TARGET_WAITKIND_SPURIOUS
@ TARGET_WAITKIND_VFORK_DONE
@ TARGET_WAITKIND_THREAD_CREATED
@ TARGET_WAITKIND_SIGNALLED
@ TARGET_WAITKIND_STOPPED
@ TARGET_WAITKIND_SYSCALL_RETURN
@ TARGET_WAITKIND_SYSCALL_ENTRY
@ TARGET_WAITKIND_NO_HISTORY
@ TARGET_WAITKIND_VFORKED