aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-09-09 08:35:26 -0600
committerTom Tromey <tom@tromey.com>2024-01-28 10:58:16 -0700
commit880e58fbc2b0ad44fbfbad3505fa7e36335816d0 (patch)
tree70e162291ebb3dea122e47f785edec492af4532e
parentccf41c248737eb6650211481366c4e1156ce01ae (diff)
downloadgdb-880e58fbc2b0ad44fbfbad3505fa7e36335816d0.zip
gdb-880e58fbc2b0ad44fbfbad3505fa7e36335816d0.tar.gz
gdb-880e58fbc2b0ad44fbfbad3505fa7e36335816d0.tar.bz2
Remove some obsolete Python constants
The Python code has exported some constants, but they are no longer documented, and were never useful. This patch removes them.
-rw-r--r--gdb/python/py-symbol.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c
index 2fb6837..db8df89 100644
--- a/gdb/python/py-symbol.c
+++ b/gdb/python/py-symbol.c
@@ -686,20 +686,6 @@ gdbpy_initialize_symbols (void)
#include "sym-domains.def"
#undef DOMAIN
- /* These remain defined for compatibility, but as they were never
- correct, they are no longer documented. Eventually we can remove
- them. These exist because at one time, enum search_domain and
- enum domain_enum_tag were combined -- but different values were
- used differently. Here we try to give them values that will make
- sense if they are passed to gdb.lookup_symbol. */
- if (PyModule_AddIntConstant (gdb_module, "SYMBOL_VARIABLES_DOMAIN",
- VAR_DOMAIN) < 0
- || PyModule_AddIntConstant (gdb_module, "SYMBOL_FUNCTIONS_DOMAIN",
- VAR_DOMAIN) < 0
- || PyModule_AddIntConstant (gdb_module, "SYMBOL_TYPES_DOMAIN",
- VAR_DOMAIN) < 0)
- return -1;
-
return gdb_pymodule_addobject (gdb_module, "Symbol",
(PyObject *) &symbol_object_type);
}