This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Eliminate ifdef in nrun.c


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

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 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]