From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21262 invoked by alias); 17 Mar 2009 19:28:58 -0000 Received: (qmail 21254 invoked by uid 22791); 17 Mar 2009 19:28:58 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Mar 2009 19:28:53 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 52B612BABA6; Tue, 17 Mar 2009 15:28:52 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id C99kaREUG8ug; Tue, 17 Mar 2009 15:28:52 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 38E962BABA5; Tue, 17 Mar 2009 15:28:52 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 944D9F5CFA; Tue, 17 Mar 2009 12:28:51 -0700 (PDT) Date: Tue, 17 Mar 2009 19:31:00 -0000 From: Joel Brobecker To: Pedro Alves Cc: gdb-patches@sourceware.org, Tristan Gingold Subject: Re: [RFC] How to get target_ops from to_kill method? Message-ID: <20090317192851.GE31979@adacore.com> References: <20090316162247.GE9576@adacore.com> <200903171805.41002.pedro@codesourcery.com> <20090317190645.GD31979@adacore.com> <200903171911.25347.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200903171911.25347.pedro@codesourcery.com> User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-03/txt/msg00324.txt.bz2 > > * target.h (struct target_ops): Add a "target_ops *" parameter to > > method to_kill. > > (target_kill): Remove macro. Add declaration. > > * target.c (debug_to_kill): Delete, no longer necessary. > > (target_kill): New function. > > (update_current_target): Stop inheriting the to_kill method. > > Do not de_fault it to no_process either. > > (setup_target_debug): Do not set current_target.to_kill. > > * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c, > > linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c, > > remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update > > accordingly. > > > > Tested on x86_64-linux again... > > This looks great. Please go ahead and commit it. Thanks! Yoohoo! Thanks a lot for your help, Pedro. Much appreciated. -- Joel