mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #18772: fix the gdb plugin after the set implementation changes
This commit is contained in:
parent
f5e30d8b54
commit
9d95254bb7
5 changed files with 26 additions and 31 deletions
|
@ -29,18 +29,12 @@ set_key_error(PyObject *arg)
|
|||
#define PERTURB_SHIFT 5
|
||||
|
||||
/* Object used as dummy key to fill deleted entries */
|
||||
|
||||
static PyObject _dummy_struct;
|
||||
|
||||
#define dummy (&_dummy_struct)
|
||||
|
||||
#ifdef Py_REF_DEBUG
|
||||
PyObject *
|
||||
_PySet_Dummy(void)
|
||||
{
|
||||
return dummy;
|
||||
}
|
||||
#endif
|
||||
/* Exported for the gdb plugin's benefit. */
|
||||
PyObject *_PySet_Dummy = dummy;
|
||||
|
||||
#define INIT_NONZERO_SET_SLOTS(so) do { \
|
||||
(so)->table = (so)->smalltable; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue