From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16584 invoked by alias); 26 May 2005 20:02:39 -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 16558 invoked by uid 22791); 26 May 2005 20:02:32 -0000 Received: from 64-6-182-228.t1.lax.megapath.net (HELO abbott.domain.trailerparc.com) (64.6.182.228) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 26 May 2005 20:02:32 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: gdb 6.3 misses breakpoint on Linux when inferior does clone() Date: Thu, 26 May 2005 20:02:00 -0000 Message-ID: <2DC041637C94C64C8039281448B323B2870FC0@abbott.domain.trailerparc.com> From: "Satish Mohan" To: "Daniel Jacobowitz" Cc: X-SW-Source: 2005-05/txt/msg00340.txt.bz2 -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 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 =A0If 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.=20=20=20 [Satish] Doesn't ptrace(PTRACE_GETREGS,...) provide that information ? Or i= s that arch. specific ? Thx --satish