Peter Slegg wrote:
(gdb) step Single stepping until exit from function main, which has no line number information. __main () at ../../../../libgcc/../gcc/libgcc2.c:2184 2184 ../../../../libgcc/../gcc/libgcc2.c: No such file or directory.
Do "n" (next), not "step".GCC inserts a call to __main() at the very beginning of your main(). And that function is defined in libgcc.a, usually you don't have the sources. If you do "step" you go into __main(), but if you do "n" you stop just after calling __main(), which is what you need.
-- Vincent Rivière