import gdb-19990422 snapshot

This commit is contained in:
Stan Shebs 1999-04-27 01:33:01 +00:00
parent 8b0b198558
commit 2d514e6f36
7 changed files with 6203 additions and 0 deletions

14
sim/mcore/ChangeLog Normal file
View File

@ -0,0 +1,14 @@
1999-04-22 Nick Clifton <nickc@cygnus.com>
* interp.c: Add tracing and verbose options.
Fixed trap and syscall emulations.
1999-04-08 Nick Clifton <nickc@cygnus.com>
* interp.c: New file: Simulator for MCore.
* sysdep.h: New file: Systems definitions for MCore simulator.
* configure.in: New file: Configure script for MCore simulator.
* configure: New file: Genreated.
* config,in: New file: Config support.
* Makefile.in: New file: Meta makefile for MCore simulator.

29
sim/mcore/Makefile.in Normal file
View File

@ -0,0 +1,29 @@
# Makefile template for Configure for the MCore sim library.
# Copyright (C) 1990, 91, 92, 95, 96, 19, 1999 Free Software Foundation, Inc.
# Written by Cygnus Solutions.
#
# 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.
## COMMON_PRE_CONFIG_FRAG
SIM_OBJS = interp.o sim-load.o
SIM_EXTRA_LIBS = -lm
SIM_EXTRA_CLEAN = mcore-clean
## COMMON_POST_CONFIG_FRAG
interp.o: interp.c
mcore-clean:

34
sim/mcore/config.in Normal file
View File

@ -0,0 +1,34 @@
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE
/* Define if you have the getrusage function. */
#undef HAVE_GETRUSAGE
/* Define if you have the sigaction function. */
#undef HAVE_SIGACTION
/* Define if you have the time function. */
#undef HAVE_TIME
/* Define if you have the <stdlib.h> header file. */
#undef HAVE_STDLIB_H
/* Define if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define if you have the <sys/resource.h> header file. */
#undef HAVE_SYS_RESOURCE_H
/* Define if you have the <sys/time.h> header file. */
#undef HAVE_SYS_TIME_H
/* Define if you have the <time.h> header file. */
#undef HAVE_TIME_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H

3892
sim/mcore/configure vendored Executable file

File diff suppressed because it is too large Load Diff

10
sim/mcore/configure.in Normal file
View File

@ -0,0 +1,10 @@
dnl Process this file with autoconf to produce a configure script.
sinclude(../common/aclocal.m4)
AC_PREREQ(2.5)dnl
AC_INIT(Makefile.in)
SIM_AC_COMMON
AC_CHECK_HEADERS(unistd.h)
SIM_AC_OUTPUT

2133
sim/mcore/interp.c Normal file

File diff suppressed because it is too large Load Diff

91
sim/mcore/sysdep.h Normal file
View File

@ -0,0 +1,91 @@
/* System includes and definitions used by the Motorolla MCore simulator.
Copyright (C) 1999 Free Software Foundation, Inc.
Contributed by Cygnus Solutions.
This file is part of GDB, the GNU debugger.
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, 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. */
#ifndef __SYSDEP_H
#define __SYSDEP_H
#ifndef hosts_std_host_H
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <ctype.h>
#include <string.h>
#include <sys/file.h>
#include "ansidecl.h"
#ifndef O_ACCMODE
#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
#endif
#ifndef SEEK_SET
#define SEEK_SET 0
#endif
#ifndef SEEK_CUR
#define SEEK_CUR 1
#endif
#ifdef STDC_HEADERS
#include <stdlib.h>
/*#include <string.h>*/
#else
extern char * mktemp ();
extern PTR memset ();
#ifndef DONTDECLARE_MALLOC
extern PTR malloc ();
extern PTR realloc ();
#endif
#ifndef __GNUC__
extern PTR memcpy ();
#else
/* char * memcpy (); */
#endif
#ifdef __STDC__
extern void free ();
#else
extern int free();
#endif
extern char * strchr();
extern char * getenv();
extern PTR memchr();
extern char * strrchr();
extern char * strrchr();
extern char * ctime();
extern long atol();
extern char * getenv();
#endif /* STDC_HEADERS */
#ifndef BYTES_IN_PRINTF_INT
#define BYTES_IN_PRINTF_INT 4
#endif
#include "fopen-same.h"
#define hosts_std_host_H
#endif
#ifdef STDC_HEADERS
#include <stddef.h>
#endif /* STDC_HEADERS */
#endif /* __SYSDEP_H */