This is the mail archive of the
frysk-bugzilla@sourceware.org
mailing list for the frysk project.
[Bug general/4889] adding new codeObserver in updateHit causes java.lang.IllegalStateException: Already stepping
- From: "mark at klomp dot org" <sourceware-bugzilla at sourceware dot org>
- To: frysk-bugzilla at sourceware dot org
- Date: 3 Aug 2007 12:57:45 -0000
- Subject: [Bug general/4889] adding new codeObserver in updateHit causes java.lang.IllegalStateException: Already stepping
- References: <20070803122627.4889.pmachata@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.