Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] Eliminate ifdef in nrun.c
Date: Mon, 23 Jun 2003 18:18:00 -0000	[thread overview]
Message-ID: <3EF7411B.4010405@redhat.com> (raw)

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

The h8/300 simulator now handles signals and exit codes correctly,
so this hack is no longer required.


[-- Attachment #2: tmp --]
[-- Type: text/plain, Size: 877 bytes --]

2003-06-23  Michael Snyder  <msnyder@redhat.com>

	* nrun.c (main): Delete h8/300 ifdef (sim now handles signals).

Index: nrun.c
===================================================================
RCS file: /cvs/src/src/sim/common/nrun.c,v
retrieving revision 1.3
diff -p -r1.3 nrun.c
*** nrun.c	27 Feb 2003 23:26:33 -0000	1.3
--- nrun.c	23 Jun 2003 18:02:06 -0000
*************** main (int argc, char **argv)
*** 176,186 ****
       the signal that the simulator received; we want to return that to
       indicate failure.  */
    
- #ifdef SIM_H8300 /* FIXME: Ugh.  grep for SLEEP in compile.c  */
-   if (sigrc == SIGILL)
-     abort ();
-   sigrc = 0;
- #else
    /* Why did we stop? */
    switch (reason)
      {
--- 176,181 ----
*************** main (int argc, char **argv)
*** 198,204 ****
        break;
  
      }
- #endif
  
    return sigrc;
  }
--- 193,198 ----

             reply	other threads:[~2003-06-23 18:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-23 18:18 Michael Snyder [this message]
2003-06-23 18:35 ` Andrew Cagney

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=3EF7411B.4010405@redhat.com \
    --to=msnyder@redhat.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