From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4690 invoked by alias); 23 Aug 2006 03:43:58 -0000 Received: (qmail 4681 invoked by uid 22791); 23 Aug 2006 03:43:57 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 23 Aug 2006 03:43:53 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GFjeh-0002Pq-Cd; Tue, 22 Aug 2006 23:43:51 -0400 Date: Wed, 23 Aug 2006 03:43:00 -0000 From: Daniel Jacobowitz To: Michael Snyder Cc: GDB General ML , Ewa Matejska Subject: Re: Follow-fork with gdbserver Message-ID: <20060823034351.GA9228@nevyn.them.org> Mail-Followup-To: Michael Snyder , GDB General ML , Ewa Matejska References: <1156293099.9019.28.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1156293099.9019.28.camel@localhost.localdomain> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00181.txt.bz2 On Tue, Aug 22, 2006 at 05:31:39PM -0700, Michael Snyder wrote: > Hey Daniel, > > How difficult, and how interesting, do you think it would be > to add follow-fork support to gdbserver for native linux? I did it once for a customer. It wasn't terribly hard, but it was an incredibly bad hack, because GDB normally does some futzing around with breakpoints on fork events; gdbserver doesn't have a breakpoint list, so it doesn't know what to do. So I had it capture some memory writes and replay them. Nowadays gdbserver still doesn't set software breakpoints (Z0/z0), but it does have most of the infrastructure to do it. So, it would probably be easier to design the new packets without my ugly hack. -- Daniel Jacobowitz CodeSourcery