This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SH sim: introducing argv support


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]