diff options
author | 2021-04-01 16:00:31 +0100 | |
---|---|---|
committer | 2021-04-01 16:00:31 +0100 | |
commit | fcb55c0037baab6f98f91ee38ce84b6f874f034a (patch) | |
tree | 29e1499f2f77ad8a4c76d5484517f46ac4fe8313 /Tools | |
parent | bpo-43688: Fix Py_LIMITED_API version of xxlimited (GH-25135) (diff) | |
download | cpython-fcb55c0037baab6f98f91ee38ce84b6f874f034a.tar.gz cpython-fcb55c0037baab6f98f91ee38ce84b6f874f034a.tar.bz2 cpython-fcb55c0037baab6f98f91ee38ce84b6f874f034a.zip |
bpo-27129: Use instruction offsets, not byte offsets, in bytecode and internally. (GH-25069)
* Use instruction offset, rather than bytecode offset. Streamlines interpreter dispatch a bit, and removes most EXTENDED_ARGs for jumps.
* Change some uses of PyCode_Addr2Line to PyFrame_GetLineNumber
Diffstat (limited to 'Tools')
-rwxr-xr-x | Tools/gdb/libpython.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/gdb/libpython.py b/Tools/gdb/libpython.py index e18ab0d873c..270aeb426eb 100755 --- a/Tools/gdb/libpython.py +++ b/Tools/gdb/libpython.py @@ -947,7 +947,7 @@ class PyFrameObjectPtr(PyObjectPtr): return self.f_lineno try: - return self.co.addr2line(self.f_lasti) + return self.co.addr2line(self.f_lasti*2) except Exception: # bpo-34989: addr2line() is a complex function, it can fail in many # ways. For example, it fails with a TypeError on "FakeRepr" if |