From: changlehung(牧牛的铃铛) <61316604+Chang-LeHung@users.noreply.github.com> Date: Mon, 12 May 2025 19:11:36 +0000 (+0800) Subject: gh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines... X-Git-Tag: v3.15.0a1~1743 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae74e3f8636382efdac441c1bc6e69aa66694927;p=thirdparty%2FPython%2Fcpython.git gh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines.extend (#133933) --- diff --git a/Lib/pdb.py b/Lib/pdb.py index f89d104fcddb..544c701bbd2c 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=()):