aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2021-05-25 17:18:55 +0200
committerHannes Domani <ssbssa@yahoo.de>2021-06-03 14:56:55 +0200
commit6ac5237cf17d299491294359818baab522be5a42 (patch)
treeb967b240166b11b734ca61b8d9dd5528f4f36b43 /gdb/python
parentbbd47c1230b3fbc25e6292ea3f2f5d275d4d459a (diff)
downloadgdb-6ac5237cf17d299491294359818baab522be5a42.zip
gdb-6ac5237cf17d299491294359818baab522be5a42.tar.gz
gdb-6ac5237cf17d299491294359818baab522be5a42.tar.bz2
Restore gdb.SYMBOL_LABEL_DOMAIN constant
It was removed (probably by mistake) in 51e78fc5fa21870d415c52f90b93e3c6ad57be46. gdb/ChangeLog: 2021-06-03 Hannes Domani <ssbssa@yahoo.de> * python/py-symbol.c (gdbpy_initialize_symbols): Restore gdb.SYMBOL_LABEL_DOMAIN constant. gdb/testsuite/ChangeLog: 2021-06-03 Hannes Domani <ssbssa@yahoo.de> * gdb.python/py-symbol.exp: Test symbol constants.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-symbol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/python/py-symbol.c b/gdb/python/py-symbol.c
index 8953ee0..d44b55e 100644
--- a/gdb/python/py-symbol.c
+++ b/gdb/python/py-symbol.c
@@ -673,6 +673,8 @@ gdbpy_initialize_symbols (void)
VAR_DOMAIN) < 0
|| PyModule_AddIntConstant (gdb_module, "SYMBOL_STRUCT_DOMAIN",
STRUCT_DOMAIN) < 0
+ || PyModule_AddIntConstant (gdb_module, "SYMBOL_LABEL_DOMAIN",
+ LABEL_DOMAIN) < 0
|| PyModule_AddIntConstant (gdb_module, "SYMBOL_MODULE_DOMAIN",
MODULE_DOMAIN) < 0
|| PyModule_AddIntConstant (gdb_module, "SYMBOL_COMMON_BLOCK_DOMAIN",