aboutsummaryrefslogtreecommitdiff
path: root/sim/sh/syscall.h
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2001-01-30 23:03:56 +0000
committerAlexandre Oliva <aoliva@redhat.com>2001-01-30 23:03:56 +0000
commitde0492b6fb45b616d6a98c4b30475920359eef40 (patch)
tree73b734dfcd635a86047f9fe259f647c8a94b75de /sim/sh/syscall.h
parent7b769fb03bafef3ae97b8323740cef555dcd07ed (diff)
downloadgdb-de0492b6fb45b616d6a98c4b30475920359eef40.zip
gdb-de0492b6fb45b616d6a98c4b30475920359eef40.tar.gz
gdb-de0492b6fb45b616d6a98c4b30475920359eef40.tar.bz2
* interp.c (sim_create_inferior): Record program arguments for
later inspection by the trap handler. (count_argc): New function. (prog_argv): Declare static. (sim_write): Declare. (trap): Implement argc, argnlen and argn system calls. Do not abort on unknown system calls--simply return -1. * syscall.h (SYS_argc, SYS_argnlen, SYS_argn): Define.
Diffstat (limited to 'sim/sh/syscall.h')
-rw-r--r--sim/sh/syscall.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sim/sh/syscall.h b/sim/sh/syscall.h
index 2c15447..9b818f9 100644
--- a/sim/sh/syscall.h
+++ b/sim/sh/syscall.h
@@ -27,7 +27,8 @@
#define SYS_stat 38
#define SYS_pipe 42
#define SYS_execve 59
+#define SYS_argc 172
+#define SYS_argnlen 173
+#define SYS_argn 174
#define SYS_utime 201 /* not really a system call */
#define SYS_wait 202 /* nor is this */
-
-