This is the mail archive of the frysk-bugzilla@sourceware.org mailing list for the frysk project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug general/4889] adding new codeObserver in updateHit causes java.lang.IllegalStateException: Already stepping


------- Additional Comments From mark at klomp dot org  2007-08-03 12:57 -------
This is related/similar to bug #4747 with the difference that frysk itself is
responsible for generating the stop signal to install the breakpoint instead of
an external trigger.

This will be fixed with the fix for #4747. The "workaround":

      task.requestAddCodeObserver(observer, address);
      task.requestUnblock(this);
      return Action.BLOCK;

Is most likely what you actually want. It makes sure that the observer is
installed and only after that the task is unblocked. If you use the sequence:

      task.requestAddCodeObserver(observer, address);
      return Action.CONTINUE;

The request to add the new observer is only pending and the task might already
be running long before the observer is installed (so you could miss hitting that
breakpoint). This is actually what is happening here.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=4889

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]