linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* real-time signals, gdb
@ 1999-12-06 21:05 Frank McPherson
  0 siblings, 0 replies; only message in thread
From: Frank McPherson @ 1999-12-06 21:05 UTC (permalink / raw)
  To: linuxppc-dev


I'm running Yellowdog Champion Server 1.1 with the kernel version and
support tools & libs versions it shipped with.  

I've got a simple test program which prints a message to the screen and
then goes to sleep for a while.   When I run this under gdb and send a
real-time signal, let's say 32, to the process, I get the message
"Program received signal ?, Unknown signal." from gdb.  

So I did a little rtfm, and tried this: 
(gdb) handle 32 nostop pass print
gdb helpfully responded, "Only signals 1-15 are valid as numeric signals."
Okay, no problem:  (gdb) handle SIG32 nostop pass print
Great, looks like we're getting somewhere:
Signal        Stop      Print   Pass to program Description
SIG32         No        Yes     Yes             Real-time event 32

Only problem is, I get the same behavior from my program when I run it again:
(gdb) run
(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/frank/Source/pthread-test/./foo 
Beginning main thread main() pid = 15129.
(kill -32 15129 in another window)
Program received signal ?, Unknown signal.

Any ideas?  I wrote my simple test program because I'm trying to debug
some bizarre behavior in dce rpc where the function called by
pthread_once() is getting about halfway through, then infinitely looping
between just at the end of an exception handling macro and the end of
the function.   When I try to run that program under gdb, I get this
same behavior, which is why I'd like to fix it.  

Any chance of a more recent gdb version helping me out?  More recent
glibc version?  
gdb version is gdb-4.17.0.11-6, glibc version is glibc-2.1.1-6h. 

thanks in advance! 

-- 
Frank H. McPherson IV
W118 Embedded Solutions Team
The MITRE Corporation
703-883-5404

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-12-06 21:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-06 21:05 real-time signals, gdb Frank McPherson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).