This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: SH sim: introducing argv support
- To: Alexandre Oliva <aoliva at redhat dot com>
- Subject: Re: SH sim: introducing argv support
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 30 Jan 2001 14:40:51 -0800
- Cc: gdb-patches at sources dot redhat dot com
- References: <orsnm7xn1s.fsf@guarana.lsd.ic.unicamp.br>
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