Fix for PR 1971 .

Ramana Radhakrishnan ramana.radhakrishnan@codito.com
Tue Jan 3 18:41:00 GMT 2006


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  <ramana.radhakrishnan@codito.com>

	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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-pr1971
Type: text/x-patch
Size: 1187 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060103/5c024741/attachment.bin>


More information about the Gdb-patches mailing list