From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15892 invoked by alias); 13 Jul 2005 13:50:53 -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 15880 invoked by uid 22791); 13 Jul 2005 13:50:50 -0000 Received: from host217-40-213-68.in-addr.btopenworld.com (HELO SERRANO.CAM.ARTIMI.COM) (217.40.213.68) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 13 Jul 2005 13:50:50 +0000 Received: from mace ([192.168.1.25]) by SERRANO.CAM.ARTIMI.COM with Microsoft SMTPSVC(6.0.3790.211); Wed, 13 Jul 2005 14:50:49 +0100 From: "Dave Korn" To: "'Konstantin Karganov'" , "'Nathan J. Williams'" Cc: "'Daniel Jacobowitz'" , Subject: RE: GDB is stepping past main() Date: Wed, 13 Jul 2005 13:50:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: X-SW-Source: 2005-07/txt/msg00151.txt.bz2 ----Original Message---- >From: Konstantin Karganov >Sent: 13 July 2005 14:32 >> 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 Wrong. The program does stuff both before and after main(). > The code above main do not exist for me. Wrong. It's often vital to debug the initiation and termination code. > Stepping past the end of main should report the program exit. Wrong. The program has not yet exited, so gdb should not report it. cheers, DaveK -- Can't think of a witty .sigline today....