summaryrefslogtreecommitdiffstats
path: root/Tools/gdb
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-11-10 13:41:22 (GMT)
committerGitHub <noreply@github.com>2021-11-10 13:41:22 (GMT)
commit20205ad2b5be7eb3361224fd2502d1ba09c8ae4a (patch)
treed86c1b7fe0a69e0377709def38234dae452a8b68 /Tools/gdb
parent6ec0dec7b7b50d4fee5b2b66cf38e4291bcdf44c (diff)
downloadcpython-20205ad2b5be7eb3361224fd2502d1ba09c8ae4a.zip
cpython-20205ad2b5be7eb3361224fd2502d1ba09c8ae4a.tar.gz
cpython-20205ad2b5be7eb3361224fd2502d1ba09c8ae4a.tar.bz2
bpo-45637: Fix cframe-based fallback in the gdb helpers (GH-29515)
Diffstat (limited to 'Tools/gdb')
-rwxr-xr-xTools/gdb/libpython.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py
index f4b27f1..71c99b5 100755
--- a/Tools/gdb/libpython.py
+++ b/Tools/gdb/libpython.py
@@ -1797,14 +1797,14 @@ class Frame(object):
def get_pyop(self):
try:
- frame = self._gdbframe.read_var('frame')
- frame = PyFramePtr(frame)
- if not frame.is_optimized_out():
- return frame
+ # frame = self._gdbframe.read_var('frame')
+ # frame = PyFramePtr(frame)
+ # if not frame.is_optimized_out():
+ # return frame
cframe = self._gdbframe.read_var('cframe')
if cframe is None:
return None
- frame = PyFramePtr(cframe["current_frame"].dereference())
+ frame = PyFramePtr(cframe["current_frame"])
if frame and not frame.is_optimized_out():
return frame
return None