This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: GDB is stepping past main()
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Konstantin Karganov'" <kostik at ispras dot ru>,"'Nathan J. Williams'" <nathanw at wasabisystems dot com>
- Cc: "'Daniel Jacobowitz'" <drow at false dot org>,<gdb at sources dot redhat dot com>
- Date: Wed, 13 Jul 2005 14:50:41 +0100
- Subject: RE: GDB is stepping past main()
----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....