- 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.
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.