Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de>
To: kettenis@wins.uva.nl (Mark Kettenis)
Cc: jjenkins@jetstream.com, gdb@sourceware.cygnus.com
Subject: Re: Real-Time signals & GDB
Date: Sun, 10 Sep 2000 08:20:00 -0000	[thread overview]
Message-ID: <200009101520.RAA16236@reisser.regent.e-technik.tu-muenchen.de> (raw)
In-Reply-To: <200009070841.e878fg914294@debye.wins.uva.nl>

Please try the following (lightly tested) patch and let me know if there
are any more problems with realtime signals.

*** gdb-5.0/gdb/target.c.orig	Fri Apr 28 19:09:03 2000
--- gdb-5.0/gdb/target.c	Sun Sep 10 17:15:30 2000
***************
*** 1852,1857 ****
--- 1852,1869 ----
  	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;
  }
  
***************
*** 2107,2112 ****
--- 2119,2136 ----
  	}
  #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;
      }

>    From: Jeff Jenkins <jjenkins@jetstream.com>
>    Date: Wed, 6 Sep 2000 08:14:16 -0700 
> 
>    I downloaded gdb 5.0, and successfully compiled it for Solaris 7/SPARC.
>    However, the same problem persists as was present under 4.18.
> 
>    When I send a real-time signal from one thread to another thread, gdb halts
>    with the following message:
> 
>    "Program received signal ?, Unknown signal.
>    [Switching to LWP 7]
>    0xfef93224 in _libc_sigtimedwait () from /usr/lib/libc.so.1"
> 
> Looks like real-time signals aren't supported for Solaris.  Patches to
> make it work are probably welcome :-).
> 
> Mark

-- 
Peter Schauer			pes@regent.e-technik.tu-muenchen.de
From nickc@redhat.com Sun Sep 10 12:20:00 2000
From: Nick Clifton <nickc@redhat.com>
To: pb@tazenda.demon.co.uk
Cc: binutils@sourceware.cygnus.com, gdb@sourceware.cygnus.com
Subject: Re: update config.sub
Date: Sun, 10 Sep 2000 12:20:00 -0000
Message-id: <200009101920.MAA01443@elmo.cygnus.com>
X-SW-Source: 2000-09/msg00097.html
Content-length: 121

Hi Phil,

: I'd like to update config.sub to the latest from subversions.  Any
: objection? 

Not from me.

Cheers
	Nick
From Franz.Sirl-kernel@lauterbach.com Sun Sep 10 12:29:00 2000
From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
To: Nick Clifton <nickc@redhat.com>
Cc: pb@tazenda.demon.co.uk, binutils@sourceware.cygnus.com, gdb@sourceware.cygnus.com
Subject: Re: update config.sub
Date: Sun, 10 Sep 2000 12:29:00 -0000
Message-id: <5.0.0.19.2.20000910212651.01e89eb0@mail.lauterbach.com>
References: <200009101920.MAA01443@elmo.cygnus.com>
X-SW-Source: 2000-09/msg00098.html
Content-length: 224

At 21:20 10.09.00, Nick Clifton wrote:
>Hi Phil,
>
>: I'd like to update config.sub to the latest from subversions.  Any
>: objection?
>
>Not from me.

Shouldn't config.guess/config.sub always be updated as a pair?

Franz.


       reply	other threads:[~2000-09-10  8:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200009070841.e878fg914294@debye.wins.uva.nl>
2000-09-10  8:20 ` Peter.Schauer [this message]
2000-09-01 11:19 Jeff Jenkins
2000-09-01 11:25 ` Mark Kettenis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200009101520.RAA16236@reisser.regent.e-technik.tu-muenchen.de \
    --to=peter.schauer@regent.e-technik.tu-muenchen.de \
    --cc=gdb@sourceware.cygnus.com \
    --cc=jjenkins@jetstream.com \
    --cc=kettenis@wins.uva.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox