Skip to content

Commit eb5c104

Browse files
committed
Try to fix it.
1 parent 892d7a9 commit eb5c104

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/pystack/_pystack/cpython/runtime.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ typedef struct _Py_DebugOffsets
304304
uint64_t instr_ptr;
305305
uint64_t localsplus;
306306
uint64_t owner;
307+
uint64_t tlbc_index;
307308
} interpreter_frame;
308309

309310
// Code object offset;
@@ -319,6 +320,7 @@ typedef struct _Py_DebugOffsets
319320
uint64_t localsplusnames;
320321
uint64_t localspluskinds;
321322
uint64_t co_code_adaptive;
323+
uint64_t co_tlbc;
322324
} code_object;
323325

324326
// PyObject offset;

src/pystack/_pystack/pyframe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ FrameObject::getCode(
6060
{
6161
remote_addr_t py_code_addr = frame.getField(&py_frame_v::o_code);
6262
if (manager->versionIsAtLeast(3, 14)) {
63-
py_code_addr = py_code_addr & (~1);
63+
py_code_addr = py_code_addr & (~3);
6464
}
6565

6666
LOG(DEBUG) << std::hex << std::showbase << "Attempting to construct code object from address "

0 commit comments

Comments
 (0)