Skip to content

Commit d547497

Browse files
committed
Merge branch 'fix-issue-127011' of github.com:Agent-Hellboy/cpython into fix-issue-127011
2 parents 6427a0d + 50fdb2b commit d547497

File tree

10 files changed

+289
-340
lines changed

10 files changed

+289
-340
lines changed

Include/internal/pycore_interp_structs.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ extern "C" {
99

1010
#include "pycore_ast_state.h" // struct ast_state
1111
#include "pycore_llist.h" // struct llist_node
12-
#include "pycore_memoryobject.h" // struct _memoryobject_state
1312
#include "pycore_opcode_utils.h" // NUM_COMMON_CONSTANTS
1413
#include "pycore_pymath.h" // _PY_SHORT_FLOAT_REPR
1514
#include "pycore_structs.h" // PyHamtObject
@@ -913,10 +912,9 @@ struct _is {
913912
struct _dtoa_state dtoa;
914913
struct _py_func_state func_state;
915914
struct _py_code_state code_state;
915+
916916
struct _Py_dict_state dict_state;
917917
struct _Py_exc_state exc_state;
918-
struct _memoryobject_state memobj_state;
919-
920918
struct _Py_mem_interp_free_queue mem_free_queue;
921919

922920
struct ast_state ast;

Include/internal/pycore_memoryobject.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,6 @@ extern "C" {
88
# error "this header requires Py_BUILD_CORE define"
99
#endif
1010

11-
struct _memoryobject_state {
12-
PyTypeObject *XIBufferViewType;
13-
};
14-
15-
extern PyStatus _PyMemoryView_InitTypes(PyInterpreterState *);
16-
extern void _PyMemoryView_FiniTypes(PyInterpreterState *);
17-
18-
// exported for _interpreters module
19-
PyAPI_FUNC(PyTypeObject *) _PyMemoryView_GetXIBuffewViewType(void);
20-
21-
2211
extern PyTypeObject _PyManagedBuffer_Type;
2312

2413
PyObject *

Lib/test/test_remote_pdb.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121
from pdb import _PdbServer, _PdbClient
2222

2323

24+
if not sys.is_remote_debug_enabled():
25+
raise unittest.SkipTest('remote debugging is disabled')
26+
27+
2428
@contextmanager
2529
def kill_on_error(proc):
2630
"""Context manager killing the subprocess if a Python exception is raised."""

Modules/_interpreters_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
_RESOLVE_MODINIT_FUNC_NAME(NAME)
66

77

8-
#ifdef REGISTERS_HEAP_TYPES
98
static int
109
ensure_xid_class(PyTypeObject *cls, xidatafunc getdata)
1110
{
@@ -17,6 +16,7 @@ ensure_xid_class(PyTypeObject *cls, xidatafunc getdata)
1716
return _PyXIData_RegisterClass(&ctx, cls, getdata);
1817
}
1918

19+
#ifdef REGISTERS_HEAP_TYPES
2020
static int
2121
clear_xid_class(PyTypeObject *cls)
2222
{

0 commit comments

Comments
 (0)