From: Peter Schauer Date: Thu, 28 Sep 2000 07:48:14 +0000 (+0000) Subject: * target.c (target_signal_from_host, do_target_signal_to_host): X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ef227419afb623fdefbf072d66c0e330bff9b3d;p=binutils-gdb.git * target.c (target_signal_from_host, do_target_signal_to_host): Add support for Solaris realtime signals. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d2e4f9bd6a6..167711438a6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-09-28 Peter Schauer + + * target.c (target_signal_from_host, do_target_signal_to_host): + Add support for Solaris realtime signals. + 2000-09-27 Kevin Buettner * os9kread.c (os9k_symfile_read, os9k_end_psymtab): Protoize. diff --git a/gdb/target.c b/gdb/target.c index b50ec1c94ab..0ce52ba7e5a 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1729,6 +1729,18 @@ target_signal_from_host (int hostsig) error ("GDB bug: target.c (target_signal_from_host): unrecognized real-time signal"); } #endif + +#if defined (SIGRTMIN) + if (hostsig >= SIGRTMIN && hostsig <= SIGRTMAX) + { + /* This block of TARGET_SIGNAL_REALTIME value is in order. */ + if (33 <= hostsig && hostsig <= 63) + return (enum target_signal) + (hostsig - 33 + (int) TARGET_SIGNAL_REALTIME_33); + else + error ("GDB bug: target.c (target_signal_from_host): unrecognized real-time signal"); + } +#endif return TARGET_SIGNAL_UNKNOWN; } @@ -1983,6 +1995,19 @@ do_target_signal_to_host (enum target_signal oursig, return 32; } #endif +#endif + +#if defined (SIGRTMIN) + if (oursig >= TARGET_SIGNAL_REALTIME_33 + && oursig <= TARGET_SIGNAL_REALTIME_63) + { + /* This block of signals is continuous, and + TARGET_SIGNAL_REALTIME_33 is 33 by definition. */ + int retsig = + (int) oursig - (int) TARGET_SIGNAL_REALTIME_33 + 33; + if (retsig >= SIGRTMIN && retsig <= SIGRTMAX) + return retsig; + } #endif *oursig_ok = 0; return 0;