From 423ec54cd3a05bdd5835076e3afe962fe4dd025b Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Mon, 6 Sep 2010 13:59:03 +0000 Subject: gdb/ * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH is NULL. * fork-child.c (startup_inferior) : Use enum target_signal type. * linux-nat.c (linux_nat_resume): Use target_signal_to_host before calling strsignal. Use enum target_signal type for saved_signo. (linux_handle_extended_wait) : Use enum target_signal type. (linux_nat_wait_1): Use enum target_signal type for signo. Use target_signal_to_host before calling strsignal. * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by TARGET_SIGNAL_0. gdb/gdbserver/ * target.c (mywait) : Fix to use INTEGER. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/target.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gdb/gdbserver') diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index f06e6bf..d0fbbb5 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2010-09-06 Jan Kratochvil + + * target.c (mywait) : Fix to use INTEGER. + 2010-09-06 Pedro Alves * Makefile.in (install-only): Replace $IPA_DEPFILES with diff --git a/gdb/gdbserver/target.c b/gdb/gdbserver/target.c index 21dd377..78630b0 100644 --- a/gdb/gdbserver/target.c +++ b/gdb/gdbserver/target.c @@ -98,7 +98,7 @@ mywait (ptid_t ptid, struct target_waitstatus *ourstatus, int options, if (ourstatus->kind == TARGET_WAITKIND_EXITED) fprintf (stderr, - "\nChild exited with status %d\n", ourstatus->value.sig); + "\nChild exited with status %d\n", ourstatus->value.integer); else if (ourstatus->kind == TARGET_WAITKIND_SIGNALLED) fprintf (stderr, "\nChild terminated with signal = 0x%x (%s)\n", target_signal_to_host (ourstatus->value.sig), -- cgit v1.1