From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12790 invoked by alias); 12 Sep 2005 23:20:46 -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 12691 invoked by uid 22791); 12 Sep 2005 23:20:39 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 12 Sep 2005 23:20:39 +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 j8CNKUxV015732; Mon, 12 Sep 2005 19:20:30 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j8CNKUV28042; Mon, 12 Sep 2005 19:20:30 -0400 Received: from ballpeen.sfbay.redhat.com (ballpeen.sfbay.redhat.com [172.16.24.33]) by potter.sfbay.redhat.com (8.12.8/8.12.8) with ESMTP id j8CNKRuR022287; Mon, 12 Sep 2005 19:20:27 -0400 Received: from ballpeen.sfbay.redhat.com (ballpeen.sfbay.redhat.com [127.0.0.1]) by ballpeen.sfbay.redhat.com (8.13.4/8.13.1) with ESMTP id j8CNKRH3015005; Mon, 12 Sep 2005 16:20:27 -0700 Received: (from rth@localhost) by ballpeen.sfbay.redhat.com (8.13.4/8.13.4/Submit) id j8CNKPud015004; Mon, 12 Sep 2005 16:20:25 -0700 Date: Mon, 12 Sep 2005 23:20:00 -0000 From: Richard Henderson To: Richard Henderson Cc: Mark Kettenis , drow@false.org, amodra@bigpond.net.au, gdb-patches@gcc.gnu.org Subject: Re: ppc32 debugging ppc64, part 1 Message-ID: <20050912232025.GA14993@redhat.com> References: <20050912125047.GA5411@twiddle.net> <200509121947.j8CJlT1H030779@elgar.sibelius.xs4all.nl> <20050912203220.GA10796@nevyn.them.org> <200509122119.j8CLJDNE020689@elgar.sibelius.xs4all.nl> <20050912223637.GA3587@twiddle.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050912223637.GA3587@twiddle.net> User-Agent: Mutt/1.4.2.1i X-SW-Source: 2005-09/txt/msg00097.txt.bz2 On Mon, Sep 12, 2005 at 03:36:37PM -0700, Richard Henderson wrote: > But for the record, I was seeing odd things and wanted to get the > libc code out of the way. I later discovered the typo in my own > code, but I never got around to reverting the use of syscall. Oh, yes, one could in fact argue that libc is broken. It doesn't handle the PTRACE_PEEK*_3264 commands specially, as it does with PTRACE_PEEK*. So you'd have to write if (cmd == *_3264) ptrace (cmd, tid, addr, buf) else *buf = ptrace (cmd, tid, addr, 0); ... and then rely on libc never being fixed. And in this case I don't see what going through libc buys us besides frustration. r~