diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-06 13:59:03 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-06 13:59:03 +0000 |
commit | 423ec54cd3a05bdd5835076e3afe962fe4dd025b (patch) | |
tree | 4f6ad0475beaea090e1a8be0ba28aaa0f5a19fb0 /gdb/gdbserver | |
parent | a6eb9bc860e2b9232df85d90311e041a2bef08e5 (diff) | |
download | gdb-423ec54cd3a05bdd5835076e3afe962fe4dd025b.zip gdb-423ec54cd3a05bdd5835076e3afe962fe4dd025b.tar.gz gdb-423ec54cd3a05bdd5835076e3afe962fe4dd025b.tar.bz2 |
gdb/
* corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
is NULL.
* fork-child.c (startup_inferior) <resume_signal>: 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) <signo>: 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) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/target.c | 2 |
2 files changed, 5 insertions, 1 deletions
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 <jan.kratochvil@redhat.com> + + * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER. + 2010-09-06 Pedro Alves <pedro@codesourcery.com> * 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), |