From owner-freebsd-mips@FreeBSD.ORG Wed Feb 3 10:27:03 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 444891065672 for ; Wed, 3 Feb 2010 10:27:03 +0000 (UTC) (envelope-from c.jayachandran@gmail.com) Received: from mail-pz0-f202.google.com (mail-pz0-f202.google.com [209.85.222.202]) by mx1.freebsd.org (Postfix) with ESMTP id 1B9798FC19 for ; Wed, 3 Feb 2010 10:27:02 +0000 (UTC) Received: by pzk40 with SMTP id 40so1220265pzk.7 for ; Wed, 03 Feb 2010 02:27:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=tLhsrquomyoB/u/vylGpYzsagFWTGefvazilC0iOH68=; b=j/T+GFWvVmN3R8ORrdv5OpAhi2/bEleNeATcZKDsd6EANoA3nGpmHM26VgQ35LGN2q ZO+SvtDDgn8ZrAiRaAR61mgignrwBZNo6wYZNlvZJwM5gkXc/WsvyhZApDwTfrhwYFEP /0rOaYFl1fwsoR2g8K5vpXVZjBPWEruGcdYZk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=SITyc8ltc7jx850mq0dcCCmzNqh3NSFW+E3cK4Zf/ymNI1b6+ZbhaupX9yMzJBS18p DuohAcqgBbv4VRxYWuqgm1gYnp+nSqDhYFIP/0kLyh1azIzfKP9gF1Otx8cbgo0W0X7e LtBFk5PYGGoT/47rOmiHP/zhYDKlTSd/nnKOs= MIME-Version: 1.0 Received: by 10.141.105.13 with SMTP id h13mr3262211rvm.162.1265192822533; Wed, 03 Feb 2010 02:27:02 -0800 (PST) In-Reply-To: References: <98a59be81002021906l5a718a3p8127f2240dd538@mail.gmail.com> Date: Wed, 3 Feb 2010 15:57:02 +0530 Message-ID: <98a59be81002030227u43b0e601q2eebb383debc230b@mail.gmail.com> From: "C. Jayachandran" To: Rui Paulo Content-Type: text/plain; charset=UTF-8 Cc: freebsd-mips@freebsd.org Subject: Re: mips ptrace.S fix X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2010 10:27:03 -0000 On Wed, Feb 3, 2010 at 3:49 PM, Rui Paulo wrote: > On 3 Feb 2010, at 03:06, C. Jayachandran wrote: > >> The ptrace system call implementation seems to have a bug, we need to >> save ra and gp before calling the __error, and that will need a stack >> frame. >> >> I've attached a patch that should fix this for o32 ABI - but it really >> should be written with ABI-independent macros, any clue on how to do >> this which will take care of n32/64 too will be helpful. >> >> I also have some initial patches for making gdb work on MIPS. . That >> patch is also attached, but it is work in progress, only the static >> executables work now. > > I think you forgot the attachments or they were stripped out. I think the attachments were stripped out, may be by the mailing list itself. I had them as attachments since I was worried that gmail will damage white-space if I did it inline. Is there a standard way of submitting patches to the list? For now I have the patches at: http://sites.google.com/site/cjayachandran/files (the files are ptrace.S.patch and gdb.patch) Thanks, JC.