Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Lib/pdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
import code
import glob
import json
import stat
import token
import types
import atexit
Expand Down Expand Up @@ -3418,6 +3419,8 @@ def attach(pid, commands=()):
)
)
connect_script.close()
orig_mode = os.stat(connect_script.name).st_mode
os.chmod(connect_script.name, orig_mode | stat.S_IROTH | stat.S_IRGRP)
sys.remote_exec(pid, connect_script.name)

# TODO Add a timeout? Or don't bother since the user can ^C?
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure :func:`pdb.attach` script is readable by remote Python process.
Loading