From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29714 invoked by alias); 9 Nov 2002 00:08:31 -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 29707 invoked from network); 9 Nov 2002 00:08:30 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 9 Nov 2002 00:08:30 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18AL3G-0004Bq-00; Fri, 08 Nov 2002 20:08:46 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18AJBr-0005PO-00; Fri, 08 Nov 2002 19:09:31 -0500 Date: Fri, 08 Nov 2002 16:08:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Use PT_IO ptrace request if available Message-ID: <20021109000931.GA20735@nevyn.them.org> Mail-Followup-To: Mark Kettenis , gdb-patches@sources.redhat.com References: <200211082358.gA8Nw2Dj017053@elgar.kettenis.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200211082358.gA8Nw2Dj017053@elgar.kettenis.dyndns.org> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-11/txt/msg00268.txt.bz2 On Sat, Nov 09, 2002 at 12:58:02AM +0100, Mark Kettenis wrote: > The attached patch makes use of the PT_IO ptrace request that's > available in *BSD for data transfers to/from the inferior. It's a > couple of weeks ago now that my patch that fixes the FreeBSD > 5.0-CURRENT kernel went in, and I hope that OpenBSD and NetBSD don't > have any problems. We'll probably find out soon :-). Note that if > you run FreeBSD 5.0-CURRENT from before October 16 and after March 16, > your machine will probably lock up when using GDB. However, since > -CURRENT is a development version, I think it's acceptable to ask > people to upgrade. > > It would be great if we could get Linux to support the same interface. We've got read covered, from /proc//mem; I'm going to implement that when I get a chance. I suppose I could implement PT_IO the way you did... I was planning on a Sun-style PTRACE_READDATA (SPARC Linux already has this) but it's not possible on i386 (syscall with five arguments). I'm not sure it's worth it; it's generally reading that we do in bulk, not writing. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer