diff -r b4830b9f8c10 Lib/pdb.py
--- a/Lib/pdb.py Fri Sep 04 04:37:56 2015 -0400
+++ b/Lib/pdb.py Fri Sep 04 14:15:08 2015 -0400
@@ -1675,6 +1675,8 @@
print("Running 'cont' or 'step' will restart the program")
t = sys.exc_info()[2]
pdb.interaction(None, t)
+ if pdb._user_requested_quit:
+ break
print("Post mortem debugger finished. The " + mainpyfile +
" will be restarted")