sim: callback: expose argv & environ
[binutils-gdb.git] / sim / frv / options.c
index d489d3edd6cdf5bde42fdd687a85698dbad33013..3528c357c68035ce804151da7ef92d5f4ece769c 100644 (file)
@@ -1,6 +1,5 @@
 /* FRV simulator memory option handling.
 /* FRV simulator memory option handling.
-   Copyright (C) 1999, 2000, 2007, 2008, 2009, 2010, 2011
-   Free Software Foundation, Inc.
+   Copyright (C) 1999-2021 Free Software Foundation, Inc.
    Contributed by Red Hat.
 
 This file is part of GDB, the GNU debugger.
    Contributed by Red Hat.
 
 This file is part of GDB, the GNU debugger.
@@ -18,6 +17,9 @@ 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, see <http://www.gnu.org/licenses/>.  */
 
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+/* This must come before any other includes.  */
+#include "defs.h"
+
 #define WANT_CPU frvbf
 #define WANT_CPU_FRVBF
 
 #define WANT_CPU frvbf
 #define WANT_CPU_FRVBF
 
@@ -25,16 +27,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 #include "sim-assert.h"
 #include "sim-options.h"
 
 #include "sim-assert.h"
 #include "sim-options.h"
 
-#ifdef HAVE_STRING_H
 #include <string.h>
 #include <string.h>
-#else
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#endif
-#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
 #include <stdlib.h>
-#endif
 
 /* FRV specific command line options. */
 
 
 /* FRV specific command line options. */