]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines...
authorchanglehung(牧牛的铃铛) <61316604+Chang-LeHung@users.noreply.github.com>
Mon, 12 May 2025 19:11:36 +0000 (03:11 +0800)
committerGitHub <noreply@github.com>
Mon, 12 May 2025 19:11:36 +0000 (15:11 -0400)
Lib/pdb.py

index f89d104fcddb9ad5fb75dfba3a85d12c6bbe37a5..544c701bbd2c72b1d2ad96c49337b4478db3ab92 100644 (file)
@@ -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=()):