Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* H8300 simulator on MinGW fails to compile.
@ 2006-09-13 12:33 Chris Johns
  2006-09-13 16:55 ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Chris Johns @ 2006-09-13 12:33 UTC (permalink / raw)
  To: gdb-patches

Hi,

Building the target h8300-rtems4.7 on a MinGW host configured with:

$ head config.status
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host lapdog:
#
# ../gdb-6.5/configure  --target=h8300-rtems4.7 --verbose --disable-nls 
--without-included-gettext --disable-win32-registry --disable-werror --enable-sim
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.

fails to compile as signal numbers are not present. The patch is against 6.5 sources.

Ok ?

Regards
Chris

2006-09-13  Chris Johns <chrisj@rtems.org>

	* sim-signal.c: Add __MINGW32__ to define the SIGTRAP, SIGBUS,
	and SIGQUIT.

--- gdb-6.5/sim/common/sim-signal.c     Wed Sep 13 19:04:12 2006
+++ gdb-6.5/sim/common/sim-signal.c~    Tue Nov 29 13:43:06 2005
@@ -27,7 +27,7 @@
     to not think the process has died (so it can be debugged at the point of
     failure).  */

-#if defined (_MSC_VER) || __MINGW32__
+#ifdef _MSC_VER
  #ifndef SIGTRAP
  #define SIGTRAP 5
  #endif

2006-09-13  Chris Johns <chrisj@rtems.org>

	* compile.c: Define SIGBUS if not provided.

--- gdb-6.5/sim/h8300/compile.c Wed Sep 13 19:00:37 2006
+++ gdb-6.5/sim/h8300/compile.c~        Tue Jun 29 05:26:37 2004
@@ -37,9 +37,6 @@
  #ifndef SIGTRAP
  # define SIGTRAP 5
  #endif
-#ifndef SIGBUS
-# define SIGBUS 7
-#endif

  int debug;


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

end of thread, other threads:[~2006-09-19  1:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-13 12:33 H8300 simulator on MinGW fails to compile Chris Johns
2006-09-13 16:55 ` Eli Zaretskii
2006-09-13 20:10   ` Chris Johns
2006-09-13 20:30     ` Daniel Jacobowitz
2006-09-14  1:22       ` Chris Johns
2006-09-14  3:05         ` Daniel Jacobowitz
2006-09-14 23:43           ` Chris Johns
2006-09-16  3:53             ` Daniel Jacobowitz
2006-09-19  1:20               ` Chris Johns

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