From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20379 invoked by alias); 7 Feb 2006 20:03:56 -0000 Received: (qmail 20371 invoked by uid 22791); 7 Feb 2006 20:03:55 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Feb 2006 20:03:54 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 2120348CDB3 for ; Tue, 7 Feb 2006 15:03:52 -0500 (EST) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15955-01-5 for ; Tue, 7 Feb 2006 15:03:51 -0500 (EST) Received: from takamaka.act-europe.fr (s142-179-108-108.bc.hsia.telus.net [142.179.108.108]) by nile.gnat.com (Postfix) with ESMTP id C509648CDA9 for ; Tue, 7 Feb 2006 15:03:51 -0500 (EST) Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 10AF347E7E; Tue, 7 Feb 2006 12:03:51 -0800 (PST) Date: Tue, 07 Feb 2006 20:03:00 -0000 From: Joel Brobecker To: gdb-patches@sources.redhat.com Subject: Re: [RFA/rs6000-aix] software_single_step gdbarch method no longer set Message-ID: <20060207200351.GD1215@adacore.com> References: <20051231054133.GL4734@adacore.com> <20051231060032.GA17641@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051231060032.GA17641@nevyn.them.org> User-Agent: Mutt/1.4i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-02/txt/msg00155.txt.bz2 Hey Daniel, I am just realizing that I never got around to answering you. > I have not looked at the patch much (won't this year). However, if > you're feeling especially motivated, we could sidestep this issue... > there's a related cleanup I've been meaning to do for a long while. > > The software single step method in the gdbarch is always used if it is > set. But, that doesn't make a lot of sense. The gdbarch method should > mean "software single step is supported"; the predicate "software > single step is required" should live in the target vector instead! > It's a property of the target. e.g. MIPS GNU/Linux doesn't implement > PTRACE_SINGLESTEP, but if you're connected to a kernel debugging > session using a hardware ICE, then maybe you've really got hardware > single step. Makes sense, but ... > It's unfortunately a little trickier than that since remote targets > don't currently report whether using software singlestep is OK :-( > So setting the default behavior may not be simple. I know gdbserver > needs some adjustment here. I don't have that much time in the forseeable future to work on this, unfortunately. I would also like to work on some other cleanup activities, including the procfs stuff (which I promised to Mark and yet haven't had time to look at). So I'd rather see if my proposal can go in for now. Thanks, -- Joel