From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29976 invoked by alias); 16 Nov 2004 01:34:36 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 29952 invoked from network); 16 Nov 2004 01:34:34 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 16 Nov 2004 01:34:34 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iAG1YQh6013953; Mon, 15 Nov 2004 20:34:26 -0500 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iAG1YQr30461; Mon, 15 Nov 2004 20:34:26 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4F7D6129D8C; Mon, 15 Nov 2004 20:34:17 -0500 (EST) Message-ID: <41995917.3020304@gnu.org> Date: Tue, 16 Nov 2004 02:06:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: Hans-Peter Nilsson Cc: gdb@sourceware.org Subject: Re: When submitting sim/cris: other sim improvements before or after? References: <200411081629.iA8GTg3J020387@ignucius.se.axis.com> In-Reply-To: <200411081629.iA8GTg3J020387@ignucius.se.axis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00152.txt.bz2 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