When submitting sim/cris: other sim improvements before or after?

Andrew Cagney cagney@gnu.org
Tue Nov 16 02:06:00 GMT 2004


Hans-Peter Nilsson wrote:
> I'd also like to submit two additional features:
> 
> - New option --file-path-prefix=/where/ever.  Prefix all
> syscalls with the supplied path and chdir to there upon program
> start.  Chroot your simulated programs!  (Half-baked that is;
> there's still a "..".)  Changes are mostly in
> sim/common/callback.c, to all syscalls taking filename
> arguments.

There's already --with-sysroot, how is this different?  Having the code 
obey that, and have a --sysroot=... option (same name as GCC?) definitly 
sound like a good idea.

> - Pipe support.  Well, not full support, just enough that it has
> been successfully used to emulate the glibc non-nptl
> linuxthreads (well-behaved pipe usage) and do some performance
> analysis on a reasonably large application using pthreads.  To
> make any use of pipes, CPU-specific support to keep track of
> different CPU contexts is needed (but only one memory space of
> course).  Changes are in sim/common/callback.c for all syscalls
> that have anything to do with file descriptors and a few extra
> fields in include/gdb/callback.h.

By "pipe" you mean?

> Some other changes worth noting:
> 
> - Syscall for lstat.
> 
> - Missing CB_SYS_rename case in common/syscall.c (though the
> common/callback.c case is already in place).
> 
> - Ten more struct stat st_* fields supported in
> cb_host_to_target_stat (just using the existing strncmp/store
> machinery with no further host<->target mapping).
> 
> I'd like to submit these features before the actual CRIS port,
> because that'd simplify my work.

Sounds like a good move, lets start with that.

Andrew




More information about the Gdb mailing list