Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] [SH] ... can do this signal stuff!
@ 2012-02-28 10:03 Thomas Schwinge
  2012-02-28 13:43 ` Pedro Alves
  2012-02-28 16:05 ` Testsuite regression for annota1.exp and annota3.exp [Re: [PATCH] [SH] ... can do this signal stuff!] Jan Kratochvil
  0 siblings, 2 replies; 6+ messages in thread
From: Thomas Schwinge @ 2012-02-28 10:03 UTC (permalink / raw)
  To: gdb-patches; +Cc: Kevin Buettner

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

Hi!

An oldie -- this code has been there as of its initial import in April
1999, but the world has changed a bit in the mean time...

This fixes another 223 testsuite FAILs for sh-linux-gnu; no effect for
sh-elf (tests are not run there).

gdb/testsuite/
2012-02-28  Thomas Schwinge  <thomas@codesourcery.com>

	* gdb.base/annota1.c [__sh__]: Remove any special-casing.
	* gdb.base/annota3.c: Likewise.
	* gdb.base/sigall.c: Likewise.
	* gdb.base/signals.c: Likewise.
	* gdb.reverse/sigall-reverse.c: Likewise.

Index: gdb/testsuite/gdb.base/annota1.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota1.c,v
retrieving revision 1.1.1.3
diff -u -p -r1.1.1.3 annota1.c
--- gdb/testsuite/gdb.base/annota1.c	2 Nov 1999 04:44:26 -0000	1.1.1.3
+++ gdb/testsuite/gdb.base/annota1.c	28 Feb 2012 09:14:11 -0000
@@ -1,10 +1,6 @@
 #include <stdio.h>
 #include <signal.h>
 
-#ifdef __sh__
-#define signal(a,b)	/* Signals not supported on this target - make them go away */
-#endif
-
 
 #ifdef PROTOTYPES
 void
Index: gdb/testsuite/gdb.base/annota3.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/annota3.c,v
retrieving revision 1.1
diff -u -p -r1.1 annota3.c
--- gdb/testsuite/gdb.base/annota3.c	3 Aug 2003 01:57:13 -0000	1.1
+++ gdb/testsuite/gdb.base/annota3.c	28 Feb 2012 09:14:11 -0000
@@ -1,10 +1,6 @@
 #include <stdio.h>
 #include <signal.h>
 
-#ifdef __sh__
-#define signal(a,b)	/* Signals not supported on this target - make them go away */
-#endif
-
 
 #ifdef PROTOTYPES
 void
Index: gdb/testsuite/gdb.base/sigall.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/sigall.c,v
retrieving revision 1.3
diff -u -p -r1.3 sigall.c
--- gdb/testsuite/gdb.base/sigall.c	13 Dec 2011 17:22:08 -0000	1.3
+++ gdb/testsuite/gdb.base/sigall.c	28 Feb 2012 09:14:11 -0000
@@ -1,9 +1,6 @@
 #include <signal.h>
 #include <unistd.h>
 
-#ifdef __sh__
-#define signal(a,b)	/* Signals not supported on this target - make them go away */
-#endif
 
 /* Signal handlers, we set breakpoints in them to make sure that the
    signals really get delivered.  */
Index: gdb/testsuite/gdb.base/signals.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/signals.c,v
retrieving revision 1.2
diff -u -p -r1.2 signals.c
--- gdb/testsuite/gdb.base/signals.c	13 Dec 2011 17:22:08 -0000	1.2
+++ gdb/testsuite/gdb.base/signals.c	28 Feb 2012 09:14:11 -0000
@@ -3,10 +3,6 @@
 #include <signal.h>
 #include <unistd.h>
 
-#ifdef __sh__
-#define signal(a,b)	/* Signals not supported on this target - make them go away */
-#define alarm(a)	/* Ditto for alarm() */
-#endif
 
 static int count = 0;
 
Index: gdb/testsuite/gdb.reverse/sigall-reverse.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.reverse/sigall-reverse.c,v
retrieving revision 1.6
diff -u -p -r1.6 sigall-reverse.c
--- gdb/testsuite/gdb.reverse/sigall-reverse.c	4 Jan 2012 08:27:54 -0000	1.6
+++ gdb/testsuite/gdb.reverse/sigall-reverse.c	28 Feb 2012 09:14:11 -0000
@@ -18,9 +18,6 @@
 #include <signal.h>
 #include <unistd.h>
 
-#ifdef __sh__
-#define signal(a,b)	/* Signals not supported on this target - make them go away */
-#endif
 
 /* Signal handlers, we set breakpoints in them to make sure that the
    signals really get delivered.  */


Grüße,
 Thomas

[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]

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

end of thread, other threads:[~2012-02-28 22:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-28 10:03 [PATCH] [SH] ... can do this signal stuff! Thomas Schwinge
2012-02-28 13:43 ` Pedro Alves
2012-02-28 16:05 ` Testsuite regression for annota1.exp and annota3.exp [Re: [PATCH] [SH] ... can do this signal stuff!] Jan Kratochvil
2012-02-28 19:42   ` Thomas Schwinge
2012-02-28 19:43     ` Jan Kratochvil
2012-02-28 23:27       ` Thomas Schwinge

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