aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2002-05-31 02:17:26 +0000
committerKazu Hirata <kazu@codesourcery.com>2002-05-31 02:17:26 +0000
commitdbec3bef45b254272a19aff5358d8f6f2d19080f (patch)
tree38093b2b3c6af534298f9ac468f6f41921576c12
parent698b7d9d765a7bb6c3ab3832d5a952fd2c24fee4 (diff)
downloadgdb-dbec3bef45b254272a19aff5358d8f6f2d19080f.zip
gdb-dbec3bef45b254272a19aff5358d8f6f2d19080f.tar.gz
gdb-dbec3bef45b254272a19aff5358d8f6f2d19080f.tar.bz2
* run.c: Fix formatting.
-rw-r--r--sim/common/ChangeLog4
-rw-r--r--sim/common/run.c28
2 files changed, 18 insertions, 14 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 65aa6b1..8400639 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-30 Kazu Hirata <kazu@cs.umass.edu>
+
+ * run.c: Fix formatting.
+
2002-05-20 Nick Clifton <nickc@cambridge.redhat.com>
* run-sim.h: New header. Provide prototypes for functions used
diff --git a/sim/common/run.c b/sim/common/run.c
index 874f4b3..a2180a1 100644
--- a/sim/common/run.c
+++ b/sim/common/run.c
@@ -59,7 +59,7 @@ static char *myname;
extern int getopt ();
#ifdef NEED_UI_LOOP_HOOK
-/* Gdb foolery. This is only needed for gdb using a gui. */
+/* Gdb foolery. This is only needed for gdb using a gui. */
int (*ui_loop_hook) PARAMS ((int signo));
#endif
@@ -108,7 +108,7 @@ main (ac, av)
/* FIXME: This is currently being migrated into sim_open.
Simulators that use functions such as sim_size() still require
- this. */
+ this. */
default_callback.init (&default_callback);
sim_set_callbacks (&default_callback);
@@ -120,9 +120,9 @@ main (ac, av)
do all argv processing. */
#ifdef SIM_H8300 /* FIXME: quick hack */
- while ((i = getopt (ac, av, "a:c:m:op:s:hStv")) != EOF)
+ while ((i = getopt (ac, av, "a:c:m:op:s:hStv")) != EOF)
#else
- while ((i = getopt (ac, av, "a:c:m:op:s:tv")) != EOF)
+ while ((i = getopt (ac, av, "a:c:m:op:s:tv")) != EOF)
#endif
switch (i)
{
@@ -153,7 +153,7 @@ main (ac, av)
#ifdef SIM_HAVE_ENVIRONMENT
case 'o':
/* Operating enironment where any signals are delivered to the
- target. */
+ target. */
operating_p = 1;
break;
#endif SIM_HAVE_ENVIRONMENT
@@ -178,11 +178,11 @@ main (ac, av)
/* FIXME: Quick hack, to be replaced by more general facility. */
#ifdef SIM_H8300
case 'h':
- set_h8300h (1,0);
+ set_h8300h (1, 0);
break;
case 'S':
- set_h8300h (1,1);
- break;
+ set_h8300h (1, 1);
+ break;
#endif
default:
usage ();
@@ -202,9 +202,9 @@ main (ac, av)
}
abfd = bfd_openr (name, 0);
- if (!abfd)
+ if (!abfd)
{
- fprintf (stderr, "%s: can't open %s: %s\n",
+ fprintf (stderr, "%s: can't open %s: %s\n",
myname, name, bfd_errmsg (bfd_get_error ()));
exit (1);
}
@@ -231,7 +231,7 @@ main (ac, av)
#endif
/* Ensure that any run-time initialisation that needs to be
- performed by the simulator can occur. */
+ performed by the simulator can occur. */
sd = sim_open (SIM_OPEN_STANDALONE, &default_callback, abfd, sim_argv);
if (sd == 0)
exit (1);
@@ -245,7 +245,7 @@ main (ac, av)
#ifdef SIM_HAVE_ENVIRONMENT
/* NOTE: An old simulator supporting the operating environment MUST
provide sim_set_trace() and not sim_trace(). That way
- sim_stop_reason() can be used to determine any stop reason. */
+ sim_stop_reason() can be used to determine any stop reason. */
if (trace)
sim_set_trace ();
sigrc = 0;
@@ -299,14 +299,14 @@ main (ac, av)
case sim_signalled:
case sim_stopped:
if (sigrc != 0)
- fprintf (stderr, "program stopped with signal %d.\n", sigrc);
+ fprintf (stderr, "program stopped with signal %d.\n", sigrc);
break;
case sim_exited:
break;
case sim_running:
- case sim_polling: /* these indicate a serious problem */
+ case sim_polling: /* These indicate a serious problem. */
abort ();
break;