From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8554 invoked by alias); 9 Jul 2003 20:02:01 -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 8463 invoked from network); 9 Jul 2003 20:01:59 -0000 Received: from unknown (HELO garibaldi.home) (62.30.75.143) by sources.redhat.com with SMTP; 9 Jul 2003 20:01:59 -0000 Received: from codesourcery.com (localhost.localdomain [127.0.0.1]) by garibaldi.home (8.12.8/8.12.8) with ESMTP id h69K1rii003648; Wed, 9 Jul 2003 21:01:54 +0100 Message-ID: <3F0C74B1.7000204@codesourcery.com> Date: Wed, 09 Jul 2003 20:02:00 -0000 From: Nathan Sidwell Organization: Codesourcery LLC User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joern Rennecke CC: newlib@sources.redhat.com, gdb-patches@sources.redhat.com, gcc@gcc.gnu.org Subject: Re: RFA: Add ftruncate support to newlib/gdb-sim to unbreak -fprofile-arcs References: <200307091927.h69JRfs29157@linsvr3.uk.superh.com> In-Reply-To: <200307091927.h69JRfs29157@linsvr3.uk.superh.com> X-Enigmail-Version: 0.73.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00190.txt.bz2 Joern Rennecke wrote: > The recent change to libgcov to use ftruncate has broken -fprofile-arcs > functionality for the newlib-based sh-elf toolchain. The appended patches > add ftruncate and truncate support to sh-elf newlib / gdb-sim . thanks! > + #define SYS_truncate 129 > + #define SYS_ftruncate 130 > --- libc/sys/sh/truncate.c Wed Jul 9 17:18:48 2003 > *************** > *** 0 **** > --- 1,9 ---- > + #include <_ansi.h> > + #include > + #include "sys/syscall.h" > + > + int > + truncate (const char *path, off_t length) > + { > + return __trap34 (SYS_ftruncate, path, length, 0); ^ typo? nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC The voices in my head said this was stupid too nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk