From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6977 invoked by alias); 26 May 2005 19:43:45 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 6959 invoked by uid 22791); 26 May 2005 19:43:41 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 26 May 2005 19:43:41 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DbOGZ-0004fm-TS; Thu, 26 May 2005 15:43:39 -0400 Date: Thu, 26 May 2005 19:43:00 -0000 From: Daniel Jacobowitz To: Satish Mohan Cc: gdb@sources.redhat.com Subject: Re: gdb 6.3 misses breakpoint on Linux when inferior does clone() Message-ID: <20050526194339.GA17881@nevyn.them.org> Mail-Followup-To: Satish Mohan , gdb@sources.redhat.com References: <2DC041637C94C64C8039281448B323B2870FBA@abbott.domain.trailerparc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2DC041637C94C64C8039281448B323B2870FBA@abbott.domain.trailerparc.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00339.txt.bz2 On Thu, May 26, 2005 at 12:40:39PM -0700, Satish Mohan wrote: > Hi  If the inferior does a clone(...,CLONE_VM,...) on Linux, then gdb > deletes breakpoints in the child which indirectly affects the parent > because of CLONE_VM. The following sample code illustrates the > problem: The kernel does not provide any interface for GDB to know whether or not a clone syscall has used CLONE_VM. Until it does, there's very little that GDB can do about this. It assumes that clone using SIGCHLD is not sharing a VM space, and clone using a different signal is. -- Daniel Jacobowitz CodeSourcery, LLC