From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13974 invoked by alias); 7 Dec 2004 02:44:03 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 13944 invoked from network); 7 Dec 2004 02:43:59 -0000 Received: from unknown (HELO krynn.se.axis.com) (193.13.178.10) by sourceware.org with SMTP; 7 Dec 2004 02:43:59 -0000 Received: from ignucius.se.axis.com (ignucius.se.axis.com [10.83.5.18]) by krynn.se.axis.com (8.12.9/8.12.9/Debian-5local0.1) with ESMTP id iB72hvAD006860; Tue, 7 Dec 2004 03:43:57 +0100 Received: from ignucius.se.axis.com (localhost [127.0.0.1]) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) with ESMTP id iB72hvdD017896; Tue, 7 Dec 2004 03:43:57 +0100 Received: (from hp@localhost) by ignucius.se.axis.com (8.12.8p1/8.12.8/Debian-2woody1) id iB72hvwe017892; Tue, 7 Dec 2004 03:43:57 +0100 Date: Tue, 07 Dec 2004 03:22:00 -0000 Message-Id: <200412070243.iB72hvwe017892@ignucius.se.axis.com> From: Hans-Peter Nilsson To: gdb-patches@sources.redhat.com In-reply-to: <200412070143.iB71hG0m016416@ignucius.se.axis.com> (message from Hans-Peter Nilsson on Tue, 7 Dec 2004 02:43:16 +0100) Subject: Re: [RFA:] Support lstat as simulator call. X-SW-Source: 2004-12/txt/msg00187.txt.bz2 > Date: Tue, 7 Dec 2004 02:43:16 +0100 > From: Hans-Peter Nilsson > *** callback.c 3 Dec 2004 23:34:55 -0000 1.12 > --- callback.c 6 Dec 2004 17:10:25 -0000 > *************** os_fstat (p, fd, buf) > *** 407,412 **** > --- 407,422 ---- > return wrap (p, fstat (fdmap (p, fd), buf)); > } > > + static int > + os_lstat (p, file, buf) > + host_callback *p; > + const char *file; > + struct stat *buf; > + { > + /* ??? Same issue here as with os_fstat. */ > + return (p, lstat (file, buf)); Oops should have been "return wrap (p, lstat (file, buf));" Sorry about that. (Noticed because of a error-checking test-case that didn't show up as KPASS... The local equivalent had sysroot stuff here so the code was slightly edited from the well-tested variant.) brgds, H-P