diff options
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index e8e01e1..5e6f0b3 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -864,7 +864,7 @@ restore_pc_queue (fsr) CORE_ADDR pc = read_pc (); CORE_ADDR new_pc = read_memory_integer (fsr->regs[PCOQ_HEAD_REGNUM], 4); int pid; - WAITTYPE w; + struct target_waitstatus w; int insn_count; /* Advance past break instruction in the call dummy. */ @@ -894,14 +894,15 @@ restore_pc_queue (fsr) any other choice? Is there *any* way to do this stuff with ptrace() or some equivalent?). */ resume (1, 0); - target_wait(inferior_pid, &w); + target_wait (inferior_pid, &w); - if (!WIFSTOPPED (w)) + if (w.kind == TARGET_WAITKIND_SIGNALLED) { - stop_signal = WTERMSIG (w); + stop_signal = w.value.sig; terminal_ours_for_output (); - printf_unfiltered ("\nProgram terminated with signal %d, %s\n", - stop_signal, safe_strsignal (stop_signal)); + printf_unfiltered ("\nProgram terminated with signal %s, %s.\n", + target_signal_to_name (stop_signal), + target_signal_to_string (stop_signal)); gdb_flush (gdb_stdout); return 0; } |