gh-108463: Make expressions/statements work as expected in pdb (#108464)

This commit is contained in:
Tian Gao 2023-09-04 14:44:40 -07:00 committed by GitHub
parent 7855d325e6
commit 6304d983a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 52 additions and 0 deletions

View file

@ -237,6 +237,9 @@ class Pdb(bdb.Bdb, cmd.Cmd):
pass
self.allow_kbdint = False
self.nosigint = nosigint
# Consider these characters as part of the command so when the users type
# c.a or c['a'], it won't be recognized as a c(ontinue) command
self.identchars = cmd.Cmd.identchars + '=.[](),"\'+-*/%@&|<>~^'
# Read ~/.pdbrc and ./.pdbrc
self.rcLines = []