Bug 4639

Summary: UpdatingDisplayValue should signal when it passes out of scope
Product: frysk Reporter: Adam Jocksch <ajocksch>
Component: generalAssignee: Unassigned <frysk-bugzilla>
Status: ASSIGNED ---    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 4547    

Description Adam Jocksch 2007-06-13 18:38:42 UTC
When the variable being tracked by UpdatingDisplayValue becomes no longer
available, UpdatingDisplayValue should fire off an event.
Comment 1 Adam Jocksch 2007-06-13 18:41:07 UTC
As a note, this should cover functions returning both normally and abnormally
(exception, longjump, task dying).
Comment 2 Adam Jocksch 2007-06-22 16:38:16 UTC
UpdatingDisplayValue now notifies its observers when the variable passes out of
scope due to a function return

ChangeLog:
frysk.rt:
2007-06-22  Adam Jocksch  <ajocksch@redhat.com>

	* DisplayValue.java (refresh): Disabled stack backtraces when
	DebugInfo.print throws exceptions.
	* DisplayValueObserver.java (updateUnavailableOutOfScope): Added.
	* TestUpdatingDisplayValue.java
	(testUpdateUnavailableFuncReturn): Added code, enabled test.
	(DisplayObserver): Refactored to reflect changes to the interface.
	* UpdatingDisplayValue.java (refresh): If the value retrieved is
	null, notify the observers.
	(notifyObserversUnavailableOutOfScope): New method.
Comment 3 Adam Jocksch 2007-06-25 17:59:31 UTC
UpdatingDisplayValue now correctly signals when a variable has fallen out of
scope due to a call to (sig)longjmp.

frysk-core/frysk/pkglibdir:
2007-06-25  Adam Jocksch  <ajocksch@redhat.com>

	* funit-rt-varlongjmp.c: New file.

frysk-core/frysk/rt:
2007-06-25  Adam Jocksch  <ajocksch@redhat.com>

	* TestUpdatingDisplayValue.java (createDaemon): Now takes the name
	of the program to start.
	(testUpdateTaskStopped): Refactored for above change.
	(testUpdateValueChanged): Ditto.
	(testUpdateUnavailableFuncReturn): Ditto.
	(testUpdateUnavailableLongjump): Implemented, addresses part of
	bz#4639.