Bug 6533 - Watchpoint addition failure should not raise an exception, but should instead call .addFailed() callback
Summary: Watchpoint addition failure should not raise an exception, but should instead...
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Phil Muldoon
URL:
Keywords:
Depends on:
Blocks: 1625
  Show dependency treegraph
 
Reported: 2008-05-20 09:18 UTC by Phil Muldoon
Modified: 2008-05-20 09:19 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 Phil Muldoon 2008-05-20 09:18:59 UTC
This fits within the observer design pattern, and makes error mitigation and
handling more manageable.
Comment 1 Phil Muldoon 2008-05-20 09:19:41 UTC
   Call addFailed passing the Exception, rather than raising an exception when a
watchpoint observer fails to be added to the task.
    
    2008-05-12  Phil Muldoon  <pmuldoon@redhat.com>
    
    	* TestTaskObserverWatchpoint.java (testAddFailed): New.
    	(AddFailWatchObserver): New.
    
    2008-05-12  Phil Muldoon  <pmuldoon@redhat.com>
    
    	* LinuxPtraceProc.java (requestAddWatchObserver): Call addFailed
    	on any exceptions raised in add().