From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10003 invoked by alias); 11 Apr 2008 23:22:03 -0000 Received: (qmail 9993 invoked by uid 22791); 11 Apr 2008 23:22:02 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 11 Apr 2008 23:21:35 +0000 Received: (qmail 28333 invoked from network); 11 Apr 2008 23:21:33 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 11 Apr 2008 23:21:33 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [patch] Fix Linux attach to signalled/stopped processes Date: Sat, 12 Apr 2008 00:19:00 -0000 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) Cc: Daniel Jacobowitz , Roland McGrath , Jan Kratochvil , Doug Evans , mark.kettenis@xs4all.nl References: <20080411221958.GA21910@caradoc.them.org> <200804112354.49254.pedro@codesourcery.com> In-Reply-To: <200804112354.49254.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804120021.34444.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: 2008-04/txt/msg00232.txt.bz2 A Friday 11 April 2008 23:54:48, Pedro Alves wrote: > A Friday 11 April 2008 23:19:58, Daniel Jacobowitz wrote: > > Any idea how to do this? > > Not really. I'm don't think we can context-switch > stop_signal in all-stop mode. At least not without more work > in infrun.c. I'd have to think and try a bit more. My current > patch leaves it global in all-stop mode. Maybe you just > need a event_ptid, similar to trap_ptid, or just resend the signal > to the main thread. Actually, get_last_target_status should give you the ptid you want, I think. -- Pedro Alves