167 try: |
167 try: |
168 if "__pypy__" in sys.builtin_module_names: |
168 if "__pypy__" in sys.builtin_module_names: |
169 import __pypy__ |
169 import __pypy__ |
170 __pypy__.locals_to_fast(cf) |
170 __pypy__.locals_to_fast(cf) |
171 return |
171 return |
172 except Exception: |
172 except Exception: # secok |
173 pass |
173 pass |
174 |
174 |
175 ctypes.pythonapi.PyFrame_LocalsToFast( |
175 ctypes.pythonapi.PyFrame_LocalsToFast( |
176 ctypes.py_object(cf), |
176 ctypes.py_object(cf), |
177 ctypes.c_int(0)) |
177 ctypes.c_int(0)) |
457 # function call. This is ensured by setting stop_everywhere. |
457 # function call. This is ensured by setting stop_everywhere. |
458 self.stop_everywhere = True |
458 self.stop_everywhere = True |
459 sys.settrace(self.trace_dispatch) |
459 sys.settrace(self.trace_dispatch) |
460 |
460 |
461 try: |
461 try: |
462 exec(cmd, globalsDict, localsDict) |
462 exec(cmd, globalsDict, localsDict) # secok |
463 atexit._run_exitfuncs() |
463 atexit._run_exitfuncs() |
464 self._dbgClient.progTerminated(0) |
464 self._dbgClient.progTerminated(0) |
465 except SystemExit: |
465 except SystemExit: |
466 atexit._run_exitfuncs() |
466 atexit._run_exitfuncs() |
467 excinfo = sys.exc_info() |
467 excinfo = sys.exc_info() |