Signal definitions for host=mingw32/target=*-*-*

Masaki MURANAKA monaka@monami-software.com
Sat Apr 15 16:36:00 GMT 2006


Hello,

This is a patch that enables to build cross debuggers
on MinGW.
The base version of this patch is gdb-6.4.

I've built m32r-elf-gdb with it and checked to work.

----
2006-04-16  Masaki MURANAKA  <monaka@monami-software.com>

         * sim-signal.c: On MinGW, Added some signal definitions.
		They are not defined in Win32's signal.h.
         * remote-sim.c: Same above.
----

Index: sim/common/sim-signal.c
===================================================================
RCS file: /home/cvs/pizzafactory/gdb/sim/common/sim-signal.c,v
retrieving revision 1.3
diff -r1.3 sim-signal.c
30c30
< #ifdef _MSC_VER
---
 > #if defined(_MSC_VER) || defined(__MINGW32__)
Index: gdb/remote-sim.c
===================================================================
RCS file: /home/cvs/pizzafactory/gdb/gdb/remote-sim.c,v
retrieving revision 1.4
diff -r1.4 remote-sim.c
46a47,58
 > #if defined(_MSC_VER) || defined(__MINGW32__)
 > #ifndef SIGTRAP
 > #define SIGTRAP 5
 > #endif
 > #ifndef SIGBUS
 > #define SIGBUS 10
 > #endif
 > #ifndef SIGQUIT
 > #define SIGQUIT 3
 > #endif
 > #endif
 >


--
Masaki Muranaka
Monami software




More information about the Gdb-patches mailing list