From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13599 invoked by alias); 13 Jul 2005 13:46:34 -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 13584 invoked by uid 22791); 13 Jul 2005 13:46:32 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 13 Jul 2005 13:46:32 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1DshZG-0000rw-OL; Wed, 13 Jul 2005 09:46:30 -0400 Date: Wed, 13 Jul 2005 13:46:00 -0000 From: Daniel Jacobowitz To: Konstantin Karganov Cc: gdb@sources.redhat.com Subject: Re: GDB is stepping past main() Message-ID: <20050713134630.GA3283@nevyn.them.org> Mail-Followup-To: Konstantin Karganov , gdb@sources.redhat.com References: <20050713130541.GA1992@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i X-SW-Source: 2005-07/txt/msg00149.txt.bz2 On Wed, Jul 13, 2005 at 05:17:01PM +0400, Konstantin Karganov wrote: > > > Because the user (in your example) has asked it to step out of main. > I asked to step and started waiting for the program termination message. > And get that stopped somewhere "don't know where"... > > > If you want to handle this in a debugger, try detecting when you're in > > main, step, are no longer in main, and main is no longer in the > > backtrace. > Don't you think all this detecting is a debugger's task??? As a user, I would prefer the debugger not silently run my program to completion during a "step" command, when issued from a location with source level debugging information. You're the first person I can ever recall complaining about this behavior. -- Daniel Jacobowitz CodeSourcery, LLC