Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* patch to ignore SIGPWR and SIGXCPU (used by pthreads)
@ 2002-01-19 12:33 Per Bothner
  2002-01-20 16:48 ` Andrew Cagney
  0 siblings, 1 reply; 9+ messages in thread
From: Per Bothner @ 2002-01-19 12:33 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 322 bytes --]

Ok to check in?  Without it, people debugging Java have to issue handle
commands, as shown in http://gcc.gnu.org/java/gdb.html.

	* infrun.c (_initialize_infrun):  Don't stop or print SIGCPU and
	SIGPWR - they are used by the Java runtime's thread support.
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/per/

[-- Attachment #2: infrun.patch --]
[-- Type: text/plain, Size: 949 bytes --]

	* infrun.c (_initialize_infrun):  Don't stop or print SIGCPU and
	SIGPWR - they are used by the Java runtime's thread support.

Index: infrun.c
===================================================================
RCS file: /cvs/src/src/gdb/infrun.c,v
retrieving revision 1.50
diff -u -p -r1.50 infrun.c
--- infrun.c	2002/01/17 22:15:17	1.50
+++ infrun.c	2002/01/19 20:17:19
@@ -4298,6 +4298,12 @@ of the program stops.", &cmdlist);
   signal_stop[TARGET_SIGNAL_WINCH] = 0;
   signal_print[TARGET_SIGNAL_WINCH] = 0;
 
+  /* These are used for pthread context switching, used by libgcj. */
+  signal_stop[TARGET_SIGNAL_PWR] = 0;
+  signal_print[TARGET_SIGNAL_PWR] = 0;
+  signal_stop[TARGET_SIGNAL_XCPU] = 0;
+  signal_print[TARGET_SIGNAL_XCPU] = 0;
+
   /* These signals are used internally by user-level thread
      implementations.  (See signal(5) on Solaris.)  Like the above
      signals, a healthy program receives and handles them as part of

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-01-21 18:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-19 12:33 patch to ignore SIGPWR and SIGXCPU (used by pthreads) Per Bothner
2002-01-20 16:48 ` Andrew Cagney
2002-01-20 21:51   ` Per Bothner
2002-01-20 23:12     ` Andrew Cagney
2002-01-20 23:32       ` Per Bothner
2002-01-21  0:44         ` Andrew Cagney
2002-01-21  9:32       ` Michael Snyder
2002-01-21 10:39         ` Daniel Jacobowitz
2002-01-20 23:39   ` Per Bothner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox