Hi , Attached is a fix for PR 1971. This inserts a breakpoint at the return address for a function that does not have a previous frame which is what you have in the case of main. This would however not stop after the return from main because the semantics of the next command would not stop the execution in any place where there is no debug information. Tested on native x86 with today's head as well as 6.4 branch with no extra regressions . Ok to commit with an additional testcase ? cheers Ramana 2006-01-03 Ramana Radhakrishnan PR 1971 * infrun.c (handle_inferior_event): Handle case where previous frame can be NULL. Use insert_step_resume_breakpoint_at_sal instead. -- Ramana Radhakrishnan GNU Tools codito ergo sum (www.codito.com)