From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20669 invoked by alias); 13 Jul 2005 13:57:20 -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 20657 invoked by uid 22791); 13 Jul 2005 13:57:16 -0000 Received: from pluton.ispras.ru (HELO pluton.ispras.ru) (83.149.199.253) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Wed, 13 Jul 2005 13:57:16 +0000 Received: (qmail 73578 invoked from network); 13 Jul 2005 13:53:53 -0000 Received: from unknown (HELO truba.ispras.ru) (83.149.198.41) by pluton.ispras.ru with SMTP; 13 Jul 2005 13:53:53 -0000 Received: from truba.ispras.ru (root@localhost) by truba.ispras.ru (8.13.1/8.13.1) with SMTP id j6DDasVo018347 for ; Wed, 13 Jul 2005 17:36:54 +0400 Received: from ispserv.ispras.ru (ispserv [83.149.198.72]) by truba.ispras.ru (8.13.1/8.13.1) with ESMTP id j6DDarcj018337; Wed, 13 Jul 2005 17:36:53 +0400 Received: from ispserv.ispras.ru (localhost [127.0.0.1]) by ispserv.ispras.ru (8.12.8/8.12.8) with ESMTP id j6DDgbwg008716; Wed, 13 Jul 2005 17:42:37 +0400 Received: from localhost (kostik@localhost) by ispserv.ispras.ru (8.12.8/8.12.8/Submit) with ESMTP id j6DDgbrB008712; Wed, 13 Jul 2005 17:42:37 +0400 Date: Wed, 13 Jul 2005 13:57:00 -0000 From: Konstantin Karganov To: Daniel Jacobowitz cc: gdb@sources.redhat.com Subject: Re: GDB is stepping past main() In-Reply-To: <20050713134630.GA3283@nevyn.them.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0125], KAS/Release SMTP-Filter Version 2.0.0 [0125], KAS/Release X-Spamtest-Info: Pass through X-SW-Source: 2005-07/txt/msg00152.txt.bz2 > 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. As the default stepping mode is "step-mode off" (do not enter the functions w/o debug info) I suppose that the current position is always in user source code and the FE debugger can display it. But when stepping at the end of main() this assumption fails - no matter what is the current step-mode, the debugger gets to the place where it can't report the current position. I suppose that the step-mode should affect this behavior also. Best regards, Konstantin.