aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2013-06-21 10:59:14 +0000
committerNick Clifton <nickc@redhat.com>2013-06-21 10:59:14 +0000
commit3346cfda88e8a4351e9b11c663e365bcf9721ff2 (patch)
tree9d928f44a2929ace3c34bf83a7efc9b3f172d894 /sim/common
parent87f0aee73d487014b8e265b0ccb50bf6d7b668f6 (diff)
downloadgdb-3346cfda88e8a4351e9b11c663e365bcf9721ff2.zip
gdb-3346cfda88e8a4351e9b11c663e365bcf9721ff2.tar.gz
gdb-3346cfda88e8a4351e9b11c663e365bcf9721ff2.tar.bz2
* msp430: New Directory.
* configure.tgt: Add it. * configure: Regenerate. * gennltvals.sh: Add msp430 support. * nltvals.def: Regenerate. * Makefile.in: New. * aclocal.m4: Generate. * config.in: Generate. * configure.ac: New. * configure: Generate. * msp430-sim.c: New. * msp430-sim.h: New. * sim-main.h: New. * trace.c: New. * trace.h: New.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/ChangeLog5
-rw-r--r--sim/common/gennltvals.sh4
-rw-r--r--sim/common/nltvals.def31
3 files changed, 40 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 0df24b0..445a4c0 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-21 Nick Clifton <nickc@redhat.com>
+
+ * gennltvals.sh: Add msp430 support.
+ * nltvals.def: Regenerate.
+
2013-06-03 Mike Frysinger <vapier@gentoo.org>
* acinclude.m4: Replace maintainer-mode code with AM_MAINTAINER_MODE.
diff --git a/sim/common/gennltvals.sh b/sim/common/gennltvals.sh
index f251d71..81df382 100644
--- a/sim/common/gennltvals.sh
+++ b/sim/common/gennltvals.sh
@@ -69,6 +69,10 @@ dir=libgloss target=mn10300
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
"syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
+dir=libgloss target=msp430
+$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
+ "syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
+
dir=libgloss target=sparc
$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \
"syscall.h" 'SYS_[_[:alnum:]]*' "${cpp}"
diff --git a/sim/common/nltvals.def b/sim/common/nltvals.def
index 9e12cd2..b0dbbcf 100644
--- a/sim/common/nltvals.def
+++ b/sim/common/nltvals.def
@@ -428,6 +428,37 @@
/* end mn10300 sys target macros */
#endif
#endif
+#ifdef NL_TARGET_msp430
+#ifdef sys_defs
+/* from syscall.h */
+/* begin msp430 sys target macros */
+ { "SYS_argc", 22 },
+ { "SYS_argn", 24 },
+ { "SYS_argnlen", 23 },
+ { "SYS_argv", 13 },
+ { "SYS_argvlen", 12 },
+ { "SYS_chdir", 14 },
+ { "SYS_chmod", 16 },
+ { "SYS_close", 3 },
+ { "SYS_exit", 1 },
+ { "SYS_fstat", 10 },
+ { "SYS_getpid", 8 },
+ { "SYS_gettimeofday", 19 },
+ { "SYS_kill", 9 },
+ { "SYS_link", 21 },
+ { "SYS_lseek", 6 },
+ { "SYS_open", 2 },
+ { "SYS_read", 4 },
+ { "SYS_reconfig", 25 },
+ { "SYS_stat", 15 },
+ { "SYS_time", 18 },
+ { "SYS_times", 20 },
+ { "SYS_unlink", 7 },
+ { "SYS_utime", 17 },
+ { "SYS_write", 5 },
+/* end msp430 sys target macros */
+#endif
+#endif
#ifdef NL_TARGET_sparc
#ifdef sys_defs
/* from syscall.h */