Commit 10fe7193 authored by Markus Bauer's avatar Markus Bauer
Browse files

Showing the joined thread again

parent 3f23e4b7
......@@ -68,12 +68,14 @@ public aspect DebuggerListeners {
//Redirect join to the PseuCoThread.joinAgent method, to allow joinListener
pointcut joinGeneration(String s) : within(tree.ASTPrimitiveStatement)
&& withincode(* tree.ASTPrimitiveStatement.generateCode(..))
&& call(StringBuilder StringBuilder.append(String)) && args(s);
&& call(CodeLine.new(String, ..)) && args(s, ..);
StringBuilder around(String s) : joinGeneration(s){
CodeLine around(String s) : joinGeneration(s){
if (Pseuco.debugging){
if (s.endsWith(".join();") && !s.trim().equals(".join();")){
s = "PseuCoThread.joinAgent("+s.replace(".join();", ");");
if (s.endsWith(".join();")){ // && !s.trim().equals(".join();")
//s = "PseuCoThread.joinAgent("+s.replace(".join();", ");");
s = s.replace(".join();", ".joinMe();");
}
}
return proceed(s);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment