This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Eliminate ifdef in nrun.c
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 23 Jun 2003 11:04:11 -0700
- Subject: [PATCH] Eliminate ifdef in nrun.c
- Organization: Red Hat, Inc.
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 ----