From: Andrew Cagney <cagney@gnu.org>
To: Hans-Peter Nilsson <hans-peter.nilsson@axis.com>
Cc: gdb@sourceware.org
Subject: Re: When submitting sim/cris: other sim improvements before or after?
Date: Tue, 16 Nov 2004 02:06:00 -0000 [thread overview]
Message-ID: <41995917.3020304@gnu.org> (raw)
In-Reply-To: <200411081629.iA8GTg3J020387@ignucius.se.axis.com>
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
next prev parent reply other threads:[~2004-11-16 1:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-08 20:54 Hans-Peter Nilsson
2004-11-16 2:06 ` Andrew Cagney [this message]
2004-11-16 7:59 ` Hans-Peter Nilsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41995917.3020304@gnu.org \
--to=cagney@gnu.org \
--cc=gdb@sourceware.org \
--cc=hans-peter.nilsson@axis.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox