From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13675 invoked by alias); 19 May 2006 12:48:40 -0000 Received: (qmail 13665 invoked by uid 22791); 19 May 2006 12:48:40 -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; Fri, 19 May 2006 12:48:38 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Fh4PD-0000Ct-F8; Fri, 19 May 2006 08:48:35 -0400 Date: Fri, 19 May 2006 13:43:00 -0000 From: Daniel Jacobowitz To: Alex Bennee Cc: gdb@sources.redhat.com Subject: Re: Break on syscall? Message-ID: <20060519124834.GA750@nevyn.them.org> Mail-Followup-To: Alex Bennee , gdb@sources.redhat.com References: <1148033730.30951.15.camel@okra.transitives.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1148033730.30951.15.camel@okra.transitives.com> 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-05/txt/msg00308.txt.bz2 On Fri, May 19, 2006 at 11:15:30AM +0100, Alex Bennee wrote: > Is it possible to get gdb to break on entering/exiting a syscall (rather > than breaking on entering libc or some such)? This is not supported. > Does gdb use ptrace() to > control breakpoints in the debugged code? Breakpoints are inserted usually using PTRACE_POKETEXT. -- Daniel Jacobowitz CodeSourcery