comparison graal/com.oracle.truffle.ruby.nodes/src/com/oracle/truffle/ruby/nodes/debug/ActiveLocalDebugProbe.java @ 13918:22bf5a8ba9eb

Ruby: restore prototype debugger.
author Chris Seaton <chris.seaton@oracle.com>
date Mon, 10 Feb 2014 03:39:21 +0000
parents
children
comparison
equal deleted inserted replaced
13917:f2345d7c52ef 13918:22bf5a8ba9eb
1 /*
2 * Copyright (c) 2013, 2014 Oracle and/or its affiliates. All rights reserved. This
3 * code is released under a tri EPL/GPL/LGPL license. You can use it,
4 * redistribute it and/or modify it under the terms of the:
5 *
6 * Eclipse Public License version 1.0
7 * GNU General Public License version 2
8 * GNU Lesser General Public License version 2.1
9 */
10 package com.oracle.truffle.ruby.nodes.debug;
11
12 import com.oracle.truffle.api.*;
13 import com.oracle.truffle.ruby.runtime.*;
14 import com.oracle.truffle.ruby.runtime.core.*;
15 import com.oracle.truffle.ruby.runtime.debug.*;
16
17 public class ActiveLocalDebugProbe extends ActiveLeaveDebugProbe {
18
19 private final MethodLocal methodLocal;
20
21 public ActiveLocalDebugProbe(RubyContext context, MethodLocal methodLocal, Assumption activeAssumption, RubyProc proc) {
22 super(context, activeAssumption, proc);
23 this.methodLocal = methodLocal;
24 }
25
26 @Override
27 protected InactiveLeaveDebugProbe createInactive() {
28 final RubyContext rubyContext = (RubyContext) getContext();
29 final RubyDebugManager manager = rubyContext.getRubyDebugManager();
30 return new InactiveLocalDebugProbe(rubyContext, methodLocal, manager.getAssumption(methodLocal));
31 }
32
33 }