From: Eli Zaretskii <eliz@gnu.org>
To: Masaki MURANAKA <monaka@monami-software.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Signal definitions for host=mingw32/target=*-*-*
Date: Sat, 15 Apr 2006 18:25:00 -0000 [thread overview]
Message-ID: <uwtdqzofy.fsf@gnu.org> (raw)
In-Reply-To: <44354465-FF5A-4042-B0C3-10E4823D17E3@monami-software.com> (message from Masaki MURANAKA on Sun, 16 Apr 2006 01:36:44 +0900)
> From: Masaki MURANAKA <monaka@monami-software.com>
> Date: Sun, 16 Apr 2006 01:36:44 +0900
>
> 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.
Thanks.
> ----
> 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
Sorry, this is not the way to fix such problems. You cannot add
arbitrary signals to a runtime that doesn't support them.
The right way to fix such problems is to ifdef out the code that uses
these signals. For example:
#ifdef SIGTRAP
... code that uses SIGTRAP ...
#endif
(Yes, I know that sim-signal does add these definitions conditioned on
_MSC_VER, but I think that's wrong and should be deleted.)
Btw, I don't see these signals used anywhere in remote-sim.c. Why did
you need to add them?
next prev parent reply other threads:[~2006-04-15 18:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-15 16:36 Masaki MURANAKA
2006-04-15 18:25 ` Eli Zaretskii [this message]
2006-04-15 18:42 ` Daniel Jacobowitz
2006-04-16 1:17 ` Masaki MURANAKA
2006-04-16 6:05 ` Eli Zaretskii
2006-04-16 15:54 ` 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=uwtdqzofy.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=monaka@monami-software.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