Bug 3324 - Souce Window needs to save previous state of a debug session
Summary: Souce Window needs to save previous state of a debug session
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
Depends on:
Blocks: 1633
  Show dependency treegraph
Reported: 2006-10-09 16:27 UTC by Rick Moseley
Modified: 2007-12-11 23:57 UTC (History)
1 user (show)

See Also:
Last reconfirmed:


Note You need to log in before you can comment on or make changes to this bug.
Description Rick Moseley 2006-10-09 16:27:47 UTC
After exiting a debug session for a process using the source window, the next
time a user wants to debug the same process they must re-enter the variable
watches and all other debugging infromation they were using in their previous
session.  it would be nice to be able to save this info somewhere(maybe in
~/.frysk/path-to-proc or some such.)
Comment 1 Adam Jocksch 2007-04-30 16:26:09 UTC
2007-04-27  Adam Jocksch  <ajocksch@redhat.com>

	* SourceWindow.java (hide): Added, used as a hook for cleanUp.
	(hideAll): Ditto.
	(cleanUp): Added, all housekeeping tasks that should be done before
	the window closes should be added here.
	(saveDebugInfo): Added, will save the debugging information such as variable
	traces, breakpoints, etc. to disk when the source window closes.
Comment 2 Adam Jocksch 2007-04-30 18:58:39 UTC
Implemented basic variable trace saving:
2007-04-30  Adam Jocksch  <ajocksch@redhat.com>

	* SourceBuffer.java (getVariable): Now saves file and line number info
	into the variable.
	* SourceWindow.java (saveDebugInfo): Added code to output the document.
	(createDebugInfoPath): Added, refactored out of saveDebugInfo.
	* VariableWatchView: Now implements SaveableXXX.
	(shouldSave): Added.
	(saveVariable): Added, called from save().

2007-04-30  Adam Jocksch  <ajocksch@redhat.com>

	* Variable.java (filePath): Added, this is a temporary measure until I
	am sure this is the correct way to keep track of the file/line no that
	a variable is found at.
	(lineNo): Added, same as above.
	(getFilePath): Added.
	(getLineNo): Added.
	(setFilePathXXX): Added, this is VERY temporary as we should not be
	allowing people to change this.
	(setLineNoXXX): Ditto.