From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14189 invoked by alias); 13 Jul 2005 13:47:04 -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 14180 invoked by uid 22791); 13 Jul 2005 13:47:02 -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:47:02 +0000 Received: (qmail 67037 invoked from network); 13 Jul 2005 13:43:39 -0000 Received: from unknown (HELO truba.ispras.ru) (83.149.198.41) by pluton.ispras.ru with SMTP; 13 Jul 2005 13:43:39 -0000 Received: from truba.ispras.ru (root@localhost) by truba.ispras.ru (8.13.1/8.13.1) with SMTP id j6DDQdVY017528 for ; Wed, 13 Jul 2005 17:26:39 +0400 Received: from ispserv.ispras.ru (ispserv [83.149.198.72]) by truba.ispras.ru (8.13.1/8.13.1) with ESMTP id j6DDQd0x017518; Wed, 13 Jul 2005 17:26:39 +0400 Received: from ispserv.ispras.ru (localhost [127.0.0.1]) by ispserv.ispras.ru (8.12.8/8.12.8) with ESMTP id j6DDWMwg008344; Wed, 13 Jul 2005 17:32:22 +0400 Received: from localhost (kostik@localhost) by ispserv.ispras.ru (8.12.8/8.12.8/Submit) with ESMTP id j6DDWMF5008340; Wed, 13 Jul 2005 17:32:22 +0400 Date: Wed, 13 Jul 2005 13:47:00 -0000 From: Konstantin Karganov To: "Nathan J. Williams" cc: Daniel Jacobowitz , Subject: Re: GDB is stepping past main() In-Reply-To: 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/msg00150.txt.bz2 > You might find the "stepi" command better suits your needs, though I'm > not at all sure from your messages what, exactly, you think is > supposed to happen. I suppose that the program execution starts when main() starts and ends when main() ends (though in c++ it is not exactly so). And thus I suppose the debugging to start at the main() beginning and stop when main() finishes. The code above main do not exist for me. Stepping past the end of main should report the program exit. Best regards, Konstantin.