mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-134693: Fix [-Wmaybe-uninitialized]
warning in _remote_debugging_module.c
(#134694)
This commit is contained in:
parent
f2ce4bbdfd
commit
806107d7a2
1 changed files with 8 additions and 9 deletions
|
@ -2054,6 +2054,14 @@ parse_async_frame_object(
|
|||
|
||||
*previous_frame = GET_MEMBER(uintptr_t, frame, unwinder->debug_offsets.interpreter_frame.previous);
|
||||
|
||||
*code_object = GET_MEMBER(uintptr_t, frame, unwinder->debug_offsets.interpreter_frame.executable);
|
||||
// Strip tag bits for consistent comparison
|
||||
*code_object &= ~Py_TAG_BITS;
|
||||
assert(code_object != NULL);
|
||||
if ((void*)*code_object == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (GET_MEMBER(char, frame, unwinder->debug_offsets.interpreter_frame.owner) == FRAME_OWNED_BY_CSTACK ||
|
||||
GET_MEMBER(char, frame, unwinder->debug_offsets.interpreter_frame.owner) == FRAME_OWNED_BY_INTERPRETER) {
|
||||
return 0; // C frame
|
||||
|
@ -2067,15 +2075,6 @@ parse_async_frame_object(
|
|||
return -1;
|
||||
}
|
||||
|
||||
*code_object = GET_MEMBER(uintptr_t, frame, unwinder->debug_offsets.interpreter_frame.executable);
|
||||
// Strip tag bits for consistent comparison
|
||||
*code_object &= ~Py_TAG_BITS;
|
||||
|
||||
assert(code_object != NULL);
|
||||
if ((void*)*code_object == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
uintptr_t instruction_pointer = GET_MEMBER(uintptr_t, frame, unwinder->debug_offsets.interpreter_frame.instr_ptr);
|
||||
|
||||
// Get tlbc_index for free threading builds
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue