diff options
Diffstat (limited to 'gdb/target/waitstatus.c')
-rw-r--r-- | gdb/target/waitstatus.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/target/waitstatus.c b/gdb/target/waitstatus.c index be5e21e..dc3d75e 100644 --- a/gdb/target/waitstatus.c +++ b/gdb/target/waitstatus.c @@ -27,36 +27,36 @@ target_waitstatus_to_string (const struct target_waitstatus *ws) { const char *kind_str = "status->kind = "; - switch (ws->kind) + switch (ws->kind ()) { case TARGET_WAITKIND_EXITED: return string_printf ("%sexited, status = %d", - kind_str, ws->value.integer); + kind_str, ws->exit_status ()); case TARGET_WAITKIND_STOPPED: return string_printf ("%sstopped, signal = %s", kind_str, - gdb_signal_to_symbol_string (ws->value.sig)); + gdb_signal_to_symbol_string (ws->sig ())); case TARGET_WAITKIND_SIGNALLED: return string_printf ("%ssignalled, signal = %s", kind_str, - gdb_signal_to_symbol_string (ws->value.sig)); + gdb_signal_to_symbol_string (ws->sig ())); case TARGET_WAITKIND_LOADED: return string_printf ("%sloaded", kind_str); case TARGET_WAITKIND_FORKED: - return string_printf ("%sforked, related_pid = %s", kind_str, - ws->value.related_pid.to_string ().c_str ()); + return string_printf ("%sforked, child_ptid = %s", kind_str, + ws->child_ptid ().to_string ().c_str ()); case TARGET_WAITKIND_VFORKED: - return string_printf ("%svforked, related_pid = %s", kind_str, - ws->value.related_pid.to_string ().c_str ()); + return string_printf ("%svforked, child_ptid = %s", kind_str, + ws->child_ptid ().to_string ().c_str ()); case TARGET_WAITKIND_EXECD: return string_printf ("%sexecd, execd_pathname = %s", kind_str, - ws->value.execd_pathname); + ws->execd_pathname ()); case TARGET_WAITKIND_VFORK_DONE: return string_printf ("%svfork-done", kind_str); @@ -84,7 +84,7 @@ target_waitstatus_to_string (const struct target_waitstatus *ws) case TARGET_WAITKIND_THREAD_EXITED: return string_printf ("%sthread exited, status = %d", - kind_str, ws->value.integer); + kind_str, ws->exit_status ()); default: return string_printf ("%sunknown???", kind_str); |