From: Thomas Schwinge <thomas@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Kevin Buettner <kevinb@redhat.com>
Subject: [PATCH] [SH] ... can do this signal stuff!
Date: Tue, 28 Feb 2012 10:03:00 -0000 [thread overview]
Message-ID: <874nub5n16.fsf@schwinge.name> (raw)
[-- 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 --]
next reply other threads:[~2012-02-28 9:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-28 10:03 Thomas Schwinge [this message]
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
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=874nub5n16.fsf@schwinge.name \
--to=thomas@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=kevinb@redhat.com \
/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