From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20873 invoked by alias); 13 Apr 2008 06:41:42 -0000 Received: (qmail 20864 invoked by uid 22791); 13 Apr 2008 06:41:42 -0000 X-Spam-Check-By: sourceware.org Received: from hrndva-omtalb.mail.rr.com (HELO hrndva-omtalb.mail.rr.com) (71.74.56.122) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 13 Apr 2008 06:41:22 +0000 Received: from dell2.home ([66.67.48.11]) by hrndva-omta06.mail.rr.com with ESMTP id <20080413064120.XPSD26724.hrndva-omta06.mail.rr.com@dell2.home>; Sun, 13 Apr 2008 06:41:20 +0000 Received: from dell2.home (localhost.localdomain [127.0.0.1]) by dell2.home (8.13.4/8.12.8) with ESMTP id m3D6fIVG010260; Sun, 13 Apr 2008 06:41:18 GMT Message-Id: <200804130641.m3D6fIVG010260@dell2.home> To: Daniel Jacobowitz cc: Nick Roberts , Marty Leisner , gdb@sourceware.org, leisner@rochester.rr.com Subject: Re: breaking on open(2) on linux In-reply-to: <20080413041833.GA19526@caradoc.them.org> References: <200804122237.m3CMbtfl022914@dell2.home> <18433.16837.203782.236874@kahikatea.snap.net.nz> <20080413041833.GA19526@caradoc.them.org> Comments: In-reply-to Daniel Jacobowitz message dated "Sun, 13 Apr 2008 00:18:33 -0400." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10257.1208068878.1@dell2.home> Date: Sun, 13 Apr 2008 21:38:00 -0000 From: "Marty Leisner" Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00107.txt.bz2 Daniel Jacobowitz writes on Sun, 13 Apr 2008 00:18:33 -0400 > > Marty Leisner writes: > > > I've used gdb for 20 years...I've found the ability to > > > break on a system call and then backtrace very useful when > > > reverse engineering code > > > > > > Now, I can't do it (not sure when I last could -- I recall its been > > > a problem before, but I worked around it). > > > > > > strace shows open(2) calls... > > > > Glibc is not good about passing all calls to e.g. open through the > "open" function. Many will be inlined. GDB does not support stopping > on system calls, though I hope it will some day (someone tried to > contribute this, but the assignment paperwork never went through and I > can no longer reach him). > > -- I always felt it would be useful to embed some of the capability of strace into gdb...an "strace mode" where gdb gives strace like output until a breakpoint is hit... Stopping on system calls IMHO is a very useful feature.... I think I'm going to look into this... I'm not sure why the static and the shared are acting very different (guess its time to build glibc ;-(). marty