Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: [csl-am] missing SIGTRAP
Date: Fri, 29 Apr 2005 14:18:00 -0000	[thread overview]
Message-ID: <200504291518.05038.paul@codesourcery.com> (raw)

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

It appears that the builtin simulators use host signal numbers to communicate 
with gdb. This causes problems on windows hosts because SIGTRAP isn't 
defined. The attached patch provides a definition for SIGTRAP if the host 
doesn't have one. This probably isn't the "right way" to fix this, but it's 
near enough for our purposes.

Applied to csl-arm-20050325-branch.

Paul

2005-04-29  Paul Brook  <paul@codesourcery.com>

	* gdb/remote-sim.c (SIGTRAP): Provide default defnition.
	* gdb/signals/signals.c (SIGRAP): Ditto.

[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 1074 bytes --]

Index: gdb/remote-sim.c
===================================================================
RCS file: /var/cvsroot/src-cvs/src/gdb/remote-sim.c,v
retrieving revision 1.46.2.1
diff -u -p -r1.46.2.1 remote-sim.c
--- gdb/remote-sim.c	29 Mar 2005 02:52:05 -0000	1.46.2.1
+++ gdb/remote-sim.c	28 Apr 2005 00:58:33 -0000
@@ -44,6 +44,10 @@
 #include "sim-regno.h"
 #include "arch-utils.h"
 
+#ifndef SIGTRAP
+#define SIGTRAP 5
+#endif
+
 /* Prototypes */
 
 extern void _initialize_remote_sim (void);
Index: gdb/signals/signals.c
===================================================================
RCS file: /var/cvsroot/src-cvs/src/gdb/signals/signals.c,v
retrieving revision 1.9
diff -u -p -r1.9 signals.c
--- gdb/signals/signals.c	8 Jun 2003 18:27:14 -0000	1.9
+++ gdb/signals/signals.c	28 Apr 2005 14:47:13 -0000
@@ -30,6 +30,10 @@
 
 #include <signal.h>
 
+#ifndef SIGTRAP
+#define SIGTRAP 5
+#endif
+
 /* Always use __SIGRTMIN if it's available.  SIGRTMIN is the lowest
    _available_ realtime signal, not the lowest supported; glibc takes
    several for its own use.  */

             reply	other threads:[~2005-04-29 14:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-29 14:18 Paul Brook [this message]
2005-07-25 15:04 ` Daniel Jacobowitz
2005-07-25 18:00   ` Mark Kettenis
2005-07-25 18:06     ` Daniel Jacobowitz

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=200504291518.05038.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=gdb-patches@sources.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