From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17705 invoked by alias); 26 May 2005 20:03:57 -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 17697 invoked by uid 22791); 26 May 2005 20:03:54 -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 20:03:54 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DbOa8-0004pi-OU; Thu, 26 May 2005 16:03:52 -0400 Date: Thu, 26 May 2005 20:03: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: <20050526200352.GA18563@nevyn.them.org> Mail-Followup-To: Satish Mohan , gdb@sources.redhat.com References: <2DC041637C94C64C8039281448B323B2870FC0@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: <2DC041637C94C64C8039281448B323B2870FC0@abbott.domain.trailerparc.com> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-05/txt/msg00341.txt.bz2 On Thu, May 26, 2005 at 01:02:28PM -0700, Satish Mohan wrote: > > > -----Original Message----- > From: Daniel Jacobowitz [mailto:drow@false.org] > Sent: Thursday, May 26, 2005 12:44 PM > To: Satish Mohan > Cc: gdb@sources.redhat.com > Subject: Re: gdb 6.3 misses breakpoint on Linux when inferior does clone() > > 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. > > [Satish] Doesn't ptrace(PTRACE_GETREGS,...) provide that information ? Or is that arch. specific ? No, it does not. -- Daniel Jacobowitz CodeSourcery, LLC