From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26756 invoked by alias); 17 Mar 2009 19:11:32 -0000 Received: (qmail 26747 invoked by uid 22791); 17 Mar 2009 19:11:31 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 17 Mar 2009 19:11:26 +0000 Received: (qmail 13812 invoked from network); 17 Mar 2009 19:11:24 -0000 Received: from unknown (HELO orlando) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 17 Mar 2009 19:11:24 -0000 From: Pedro Alves To: Joel Brobecker Subject: Re: [RFC] How to get target_ops from to_kill method? Date: Tue, 17 Mar 2009 19:13:00 -0000 User-Agent: KMail/1.9.10 Cc: gdb-patches@sourceware.org, Tristan Gingold References: <20090316162247.GE9576@adacore.com> <200903171805.41002.pedro@codesourcery.com> <20090317190645.GD31979@adacore.com> In-Reply-To: <20090317190645.GD31979@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903171911.25347.pedro@codesourcery.com> X-IsSubscribed: yes 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/msg00322.txt.bz2 On Tuesday 17 March 2009 19:06:45, Joel Brobecker wrote: > New patch: > > Add a target_ops parameter to the to_kill method in struct target_ops. > > * 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! -- Pedro Alves