From owner-freebsd-mips@FreeBSD.ORG Wed Feb 3 10:49:42 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 18B36106566B for ; Wed, 3 Feb 2010 10:49:42 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from mail-fx0-f226.google.com (mail-fx0-f226.google.com [209.85.220.226]) by mx1.freebsd.org (Postfix) with ESMTP id 974E98FC13 for ; Wed, 3 Feb 2010 10:49:41 +0000 (UTC) Received: by fxm26 with SMTP id 26so284926fxm.13 for ; Wed, 03 Feb 2010 02:49:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=NSCYTr8a77JPNE4kZsPDi+EMRLOkbtXfy9qkT/JZ2LM=; b=uGSEWzQpaS5hAAO6CJZkcVM5Gl/Xi9uxLuMNET3CNHCReu0KzE7v1vN7UZlB3o7EjU EHYRuenj16nundBZOdFVNpelWEkPVx7bIkS6RFgx63OLjA1iBjRUXZ6tAKg+SuUKSJl/ h3As3o5kJk16r6ozczbawQ3+mvOYoA62hTYVs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=AZkX7aDk1EkrQHaoH0NDdgsYvp/9ybFXnzWWaaLKmK6RHx8z1Z0gdSPZym60ohXu1d qsiYZRfl3PAFD0REOsVfR2BLsUxD9jE6B0tF/GBzaTh5hAPkWGN/V6RuqYWy2RqAsHDY XH+lsOCYpUMsQEY/lDop49mcn4KtGiK1vTy2w= Received: by 10.223.2.216 with SMTP id 24mr7612188fak.72.1265192383636; Wed, 03 Feb 2010 02:19:43 -0800 (PST) Received: from ?10.0.10.4? (54.81.54.77.rev.vodafone.pt [77.54.81.54]) by mx.google.com with ESMTPS id 15sm3050752fxm.10.2010.02.03.02.19.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Feb 2010 02:19:42 -0800 (PST) Sender: Rui Paulo Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii From: Rui Paulo In-Reply-To: <98a59be81002021906l5a718a3p8127f2240dd538@mail.gmail.com> Date: Wed, 3 Feb 2010 10:19:41 +0000 Content-Transfer-Encoding: 7bit Message-Id: References: <98a59be81002021906l5a718a3p8127f2240dd538@mail.gmail.com> To: C. Jayachandran X-Mailer: Apple Mail (2.1077) 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:49:42 -0000 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. -- Rui Paulo