This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
next/step after main() function's return
- From: Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- To: gdb at sourceware dot org
- Date: Mon, 27 Dec 2010 20:33:50 -0200
- Subject: next/step after main() function's return
Hello,
when issuing a next or step after main() function's return statement, gdb drops to __libc_start_main() from libc on x86 (or generic_start_main() on ppc and so on, depending on the arch if I'm not mistaken). Is it considered a bug or it's just the expected behavior?
Thanks,
--
Edjunior