Bug 3509

Summary: Line stepping on a process which loops on a while (1) infinitely loops Frysk
Product: frysk Reporter: Mike Cvet <mcvet>
Component: generalAssignee: Mike Cvet <mcvet>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 3346    

Description Mike Cvet 2006-11-11 17:50:44 UTC
If the line never changes during execution, the line step won't actually finish.
Comment 1 Mike Cvet 2006-11-11 18:02:34 UTC
2006-11-11  Mike Cvet  <mcvet@redhat.com>

	* SourceWindow.java (lineLoopCount): Added. Keeps track of the
	number of instructions executed by each thread.
	(stepIn): If lineLoopCount reaches a certain level, we should assume
	that the line just won't change, and re-block everything.
	(updateShownStackFrame): If the selected frame has line number equal
	to zero, don't do anything.