https://github.com/python/cpython/commit/ae74e3f8636382efdac441c1bc6e69aa66694927
commit: ae74e3f8636382efdac441c1bc6e69aa66694927
branch: main
author: changlehung(牧牛的铃铛) <[email protected]>
committer: gaogaotiantian <[email protected]>
date: 2025-05-12T15:11:36-04:00
summary:
gh-133926: pass commands via remote_pdb.set_trace instead of using
remote_pdb.rcLines.extend (#133933)
files:
M Lib/pdb.py
diff --git a/Lib/pdb.py b/Lib/pdb.py
index f89d104fcddb9a..544c701bbd2c72 100644
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -3383,8 +3383,7 @@ def _connect(
f"\nLocal pdb module's protocol version: {attach_ver}"
)
else:
- remote_pdb.rcLines.extend(commands.splitlines())
- remote_pdb.set_trace(frame=frame)
+ remote_pdb.set_trace(frame=frame, commands=commands.splitlines())
def attach(pid, commands=()):
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]