diff options
author | Hannes Domani <ssbssa@yahoo.de> | 2021-05-25 17:18:55 +0200 |
---|---|---|
committer | Hannes Domani <ssbssa@yahoo.de> | 2021-06-03 14:56:55 +0200 |
commit | 6ac5237cf17d299491294359818baab522be5a42 (patch) | |
tree | b967b240166b11b734ca61b8d9dd5528f4f36b43 /gdb/python | |
parent | bbd47c1230b3fbc25e6292ea3f2f5d275d4d459a (diff) | |
download | gdb-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.c | 2 |
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", |