* interp.c (sim_create_inferior): Record program arguments for
authorAlexandre Oliva <aoliva@redhat.com>
Tue, 30 Jan 2001 23:03:56 +0000 (23:03 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Tue, 30 Jan 2001 23:03:56 +0000 (23:03 +0000)
commitde0492b6fb45b616d6a98c4b30475920359eef40
tree73b734dfcd635a86047f9fe259f647c8a94b75de
parent7b769fb03bafef3ae97b8323740cef555dcd07ed
* 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.
sim/sh/ChangeLog
sim/sh/interp.c
sim/sh/syscall.h