summaryrefslogtreecommitdiffstats
path: root/Objects/setobject.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-24 19:07:07 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-24 19:07:07 (GMT)
commit9d95254bb7f65e0afe13547b6741b6bddab8228b (patch)
treeb051dc4fedebcef406dd309c113901841dbc0b51 /Objects/setobject.c
parentf5e30d8b54cdc07c53ffa741353a83ed3263d7d2 (diff)
downloadcpython-9d95254bb7f65e0afe13547b6741b6bddab8228b.zip
cpython-9d95254bb7f65e0afe13547b6741b6bddab8228b.tar.gz
cpython-9d95254bb7f65e0afe13547b6741b6bddab8228b.tar.bz2
Issue #18772: fix the gdb plugin after the set implementation changes
Diffstat (limited to 'Objects/setobject.c')
-rw-r--r--Objects/setobject.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Objects/setobject.c b/Objects/setobject.c
index 8a855a3..1ad78c4 100644
--- a/Objects/setobject.c
+++ b/Objects/setobject.c
@@ -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; \