This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: gdb 6.3 misses breakpoint on Linux when inferior does clone()
- From: "Satish Mohan" <Satish dot Mohan at Accenia dot com>
- To: "Daniel Jacobowitz" <drow at false dot org>
- Cc: <gdb at sources dot redhat dot com>
- Date: Thu, 26 May 2005 13:02:28 -0700
- Subject: RE: gdb 6.3 misses breakpoint on Linux when inferior does clone()
-----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 ?
Thx
--satish