gh-133926: pass commands via remote_pdb.set_trace instead of using remote_pdb.rcLines.extend (#133933)

This commit is contained in:
changlehung(牧牛的铃铛) 2025-05-13 03:11:36 +08:00 committed by GitHub
parent 86c1d439e0
commit ae74e3f863
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View 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=()):