From: Tian Gao Date: Thu, 24 Apr 2025 20:07:27 +0000 (-0700) Subject: gh-93696: Fixed the breakpoint display error for frozen modules (#132862) X-Git-Tag: v3.14.0b1~318 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eef49c359505eaf109d519d39e53dfd3c78d066a;p=thirdparty%2FPython%2Fcpython.git gh-93696: Fixed the breakpoint display error for frozen modules (#132862) --- diff --git a/Lib/pdb.py b/Lib/pdb.py index 160a7043a30c..38a2fbceccc8 100644 --- a/Lib/pdb.py +++ b/Lib/pdb.py @@ -1971,12 +1971,6 @@ class Pdb(bdb.Bdb, cmd.Cmd): if last is None: last = first + 10 filename = self.curframe.f_code.co_filename - # gh-93696: stdlib frozen modules provide a useful __file__ - # this workaround can be removed with the closure of gh-89815 - if filename.startswith(" def func():', stdout, "stack entry not found") def test_empty_file(self): script = '' diff --git a/Misc/NEWS.d/next/Library/2025-04-24-01-03-40.gh-issue-93696.kM-MBp.rst b/Misc/NEWS.d/next/Library/2025-04-24-01-03-40.gh-issue-93696.kM-MBp.rst new file mode 100644 index 000000000000..61448a85a3db --- /dev/null +++ b/Misc/NEWS.d/next/Library/2025-04-24-01-03-40.gh-issue-93696.kM-MBp.rst @@ -0,0 +1 @@ +Fixed the breakpoint display error for frozen modules in :mod:`pdb`.