diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-11-24 07:59:01 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-11-24 07:59:01 +0000 |
commit | fbf1f3f1f6982710c5e379679ac4f18e795aeeb7 (patch) | |
tree | 6155eb6c4e1c8d406e6e77d4dc86061dda3ff3bc /sim/common | |
parent | c59356d3b4bdebd4618508b6b4e6afcb86982855 (diff) | |
download | gdb-fbf1f3f1f6982710c5e379679ac4f18e795aeeb7.zip gdb-fbf1f3f1f6982710c5e379679ac4f18e795aeeb7.tar.gz gdb-fbf1f3f1f6982710c5e379679ac4f18e795aeeb7.tar.bz2 |
Add d10v and v850 to gennltvals.sh and regenerate.
Add a howto.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/gennltvals.sh | 13 | ||||
-rw-r--r-- | sim/common/nltvals.def | 60 |
2 files changed, 65 insertions, 8 deletions
diff --git a/sim/common/gennltvals.sh b/sim/common/gennltvals.sh index 39f7c43..4f538cf 100644 --- a/sim/common/gennltvals.sh +++ b/sim/common/gennltvals.sh @@ -29,6 +29,10 @@ $shell ${srccom}/gentvals.sh "" open ${srcroot}/newlib/libc/include \ # Note that there is a standard syscall.h file (libgloss/syscall.h) now which # hopefully more targets can use. +dir=libgloss target=d10v +$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ + "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" + dir=libgloss target=d30v $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" @@ -41,7 +45,7 @@ dir=libgloss target=m32r $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" -dir=libgloss target=sparc +dir=libgloss target=mn10200 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" @@ -49,6 +53,11 @@ dir=libgloss target=mn10300 $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" -dir=libgloss target=mn10200 +dir=libgloss target=sparc $shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" + +dir=libgloss target=v850 +$shell ${srccom}/gentvals.sh $target sys ${srcroot}/$dir \ + "syscall.h" 'SYS_[_A-Za-z0-9]*' "${cpp}" + diff --git a/sim/common/nltvals.def b/sim/common/nltvals.def index e05d3a7..14e46f7 100644 --- a/sim/common/nltvals.def +++ b/sim/common/nltvals.def @@ -180,6 +180,30 @@ { "O_WRONLY", 1 }, /* end open target macros */ #endif +#ifdef NL_TARGET_d10v +#ifdef sys_defs +/* from syscall.h */ +/* begin d10v sys target macros */ + { "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_kill", 9 }, + { "SYS_lseek", 6 }, + { "SYS_open", 2 }, + { "SYS_read", 4 }, + { "SYS_stat", 15 }, + { "SYS_time", 18 }, + { "SYS_unlink", 7 }, + { "SYS_utime", 17 }, + { "SYS_write", 5 }, +/* end d10v sys target macros */ +#endif +#endif #ifdef NL_TARGET_d30v #ifdef sys_defs /* from syscall.h */ @@ -252,10 +276,10 @@ /* end m32r sys target macros */ #endif #endif -#ifdef NL_TARGET_sparc +#ifdef NL_TARGET_mn10200 #ifdef sys_defs /* from syscall.h */ -/* begin sparc sys target macros */ +/* begin mn10200 sys target macros */ { "SYS_argv", 13 }, { "SYS_argvlen", 12 }, { "SYS_chdir", 14 }, @@ -273,7 +297,7 @@ { "SYS_unlink", 7 }, { "SYS_utime", 17 }, { "SYS_write", 5 }, -/* end sparc sys target macros */ +/* end mn10200 sys target macros */ #endif #endif #ifdef NL_TARGET_mn10300 @@ -300,10 +324,10 @@ /* end mn10300 sys target macros */ #endif #endif -#ifdef NL_TARGET_mn10200 +#ifdef NL_TARGET_sparc #ifdef sys_defs /* from syscall.h */ -/* begin mn10200 sys target macros */ +/* begin sparc sys target macros */ { "SYS_argv", 13 }, { "SYS_argvlen", 12 }, { "SYS_chdir", 14 }, @@ -321,6 +345,30 @@ { "SYS_unlink", 7 }, { "SYS_utime", 17 }, { "SYS_write", 5 }, -/* end mn10200 sys target macros */ +/* end sparc sys target macros */ +#endif +#endif +#ifdef NL_TARGET_v850 +#ifdef sys_defs +/* from syscall.h */ +/* begin v850 sys target macros */ + { "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_kill", 9 }, + { "SYS_lseek", 6 }, + { "SYS_open", 2 }, + { "SYS_read", 4 }, + { "SYS_stat", 15 }, + { "SYS_time", 18 }, + { "SYS_unlink", 7 }, + { "SYS_utime", 17 }, + { "SYS_write", 5 }, +/* end v850 sys target macros */ #endif #endif |