Bug 3509 - Line stepping on a process which loops on a while (1) infinitely loops Frysk
Summary: Line stepping on a process which loops on a while (1) infinitely loops Frysk
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Mike Cvet
URL:
Keywords:
Depends on:
Blocks: 3346
  Show dependency treegraph
 
Reported: 2006-11-11 17:50 UTC by Mike Cvet
Modified: 2006-11-11 18:02 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.