mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-109094: replace frame->prev_instr by frame->instr_ptr (#109095)
This commit is contained in:
parent
573eff3e2e
commit
67a91f78e4
23 changed files with 249 additions and 164 deletions
|
@ -1065,9 +1065,9 @@ class PyFramePtr:
|
|||
|
||||
def _f_lasti(self):
|
||||
codeunit_p = gdb.lookup_type("_Py_CODEUNIT").pointer()
|
||||
prev_instr = self._gdbval["prev_instr"]
|
||||
instr_ptr = self._gdbval["instr_ptr"]
|
||||
first_instr = self._f_code().field("co_code_adaptive").cast(codeunit_p)
|
||||
return int(prev_instr - first_instr)
|
||||
return int(instr_ptr - first_instr)
|
||||
|
||||
def is_shim(self):
|
||||
return self._f_special("owner", int) == FRAME_OWNED_BY_CSTACK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue