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-sim.h | |
parent | c862ae314db936536aea21a7b854c03e6a59431d (diff) | |
download | gdb-de4112fa387b662c7c7a1dd3e334a1274ca54d28.zip gdb-de4112fa387b662c7c7a1dd3e334a1274ca54d28.tar.gz 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-sim.h')
-rw-r--r-- | sim/common/run-sim.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sim/common/run-sim.h b/sim/common/run-sim.h new file mode 100644 index 0000000..7792373 --- /dev/null +++ b/sim/common/run-sim.h @@ -0,0 +1,32 @@ +/* This file defines the part of the interface between the standalone + simaulator program - run - and simulator library - libsim.a - that + is not used by GDB. The GDB part is described in include/remote-sim.h. + + Copyright 2002 Free Software Foundation, Inc. + + This file is part of GDB. + + 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 + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +#ifdef SIM_TARGET_SWITCHES + /* Parse the command line, extracting any target specific switches + before the generic simulator code gets a chance to complain + about them. Returns the adjusted value of argc. */ +int sim_target_parse_command_line PARAMS ((int, char **)); + + /* Display a list of target specific switches supported by this + target. */ +void sim_target_display_usage PARAMS ((void)); +#endif |