From 6ac5237cf17d299491294359818baab522be5a42 Mon Sep 17 00:00:00 2001 From: Hannes Domani Date: Tue, 25 May 2021 17:18:55 +0200 Subject: Restore gdb.SYMBOL_LABEL_DOMAIN constant It was removed (probably by mistake) in 51e78fc5fa21870d415c52f90b93e3c6ad57be46. gdb/ChangeLog: 2021-06-03 Hannes Domani * python/py-symbol.c (gdbpy_initialize_symbols): Restore gdb.SYMBOL_LABEL_DOMAIN constant. gdb/testsuite/ChangeLog: 2021-06-03 Hannes Domani * gdb.python/py-symbol.exp: Test symbol constants. --- gdb/python/py-symbol.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/python') 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", -- cgit v1.1