Source

pypy / pypy / translator / goal / unixcheckpoint.py

Diff from to

pypy/translator/goal/unixcheckpoint.py

         while True:
             if extra_msg:
                 print extra_msg
-            print '---> Checkpoint: cont / restart / quit / pdb ?'
+            print '---> Checkpoint: cont / restart-it-all / quit / pdb ?'
             if auto:
                 print 'auto-%s' % (auto,)
                 line = auto
             if line == 'quit':
                 raise SystemExit
             if line == 'pdb':
-                import pdb; pdb.set_trace()
-            if line == 'restart':
+                try:
+                    import pdb; pdb.set_trace()
+                    dummy_for_pdb = 1    # for pdb to land
+                except Exception, e:
+                    print '(%s ignored)' % e.__class__.__name__
+                    continue
+            if line == 'restart-it-all':
                 restart_process()
 
         try: