Bug 4639 - UpdatingDisplayValue should signal when it passes out of scope
Summary: UpdatingDisplayValue should signal when it passes out of scope
Status: ASSIGNED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks: 4547
  Show dependency treegraph
 
Reported: 2007-06-13 18:38 UTC by Adam Jocksch
Modified: 2007-12-11 23:57 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 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.