SH sim: introducing argv support
Andrew Cagney
ac131313@cygnus.com
Tue Jan 30 14:43:00 GMT 2001
Alexandre Oliva wrote:
>
> Ben asked me to contribute this patch while he enjoys in Australian
> holiday. Corresponding changes in newlib and GCC to take advantage of
> it will be contributed shortly. Ok to install?
The slack ...
> Index: sim/sh/ChangeLog
> from Ben Elliston <bje@redhat.com>
>
> * 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.
Yes, they are approved since ben approves them anyway :-)
Andrew
More information about the Gdb-patches
mailing list