diff options
author | Nick Clifton <nickc@redhat.com> | 2002-05-20 14:32:50 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-05-20 14:32:50 +0000 |
commit | de4112fa387b662c7c7a1dd3e334a1274ca54d28 (patch) | |
tree | 438cdf28ea4a963c3ee792627ccbd191ed8f0a7a /sim/common/run.c | |
parent | c862ae314db936536aea21a7b854c03e6a59431d (diff) | |
download | fsf-binutils-gdb-de4112fa387b662c7c7a1dd3e334a1274ca54d28.zip fsf-binutils-gdb-de4112fa387b662c7c7a1dd3e334a1274ca54d28.tar.gz fsf-binutils-gdb-de4112fa387b662c7c7a1dd3e334a1274ca54d28.tar.bz2 |
Add support for target specific command line switches to old-style simualtors.
Make use of this support in the ARM simulator to add a --swi-support= switch
to select whcih SWI protocols to emulate.
Diffstat (limited to 'sim/common/run.c')
-rw-r--r-- | sim/common/run.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sim/common/run.c b/sim/common/run.c index 6a21586..874f4b3 100644 --- a/sim/common/run.c +++ b/sim/common/run.c @@ -1,5 +1,5 @@ /* run front end support for all the simulators. - Copyright (C) 1992, 93-96, 1997 Free Software Foundation, Inc. + Copyright (C) 1992, 93-96, 1997, 2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,6 +46,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "callback.h" #include "remote-sim.h" #include "ansidecl.h" +#include "run-sim.h" static void usage PARAMS ((void)); extern int optind; @@ -111,6 +112,10 @@ main (ac, av) default_callback.init (&default_callback); sim_set_callbacks (&default_callback); +#ifdef SIM_TARGET_SWITCHES + ac = sim_target_parse_command_line (ac, av); +#endif + /* FIXME: This is currently being rewritten to have each simulator do all argv processing. */ @@ -338,5 +343,9 @@ usage () fprintf (stderr, "\n"); fprintf (stderr, "program args Arguments to pass to simulated program.\n"); fprintf (stderr, " Note: Very few simulators support this.\n"); +#ifdef SIM_TARGET_SWITCHES + fprintf (stderr, "\nTarget specific options:\n"); + sim_target_display_usage (); +#endif exit (1); } |