diff options
author | Tom Tromey <tom@tromey.com> | 2023-03-30 23:00:26 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-01-28 10:58:16 -0700 |
commit | ccf41c248737eb6650211481366c4e1156ce01ae (patch) | |
tree | 55933f48a150085e0df7728b4f82047977559a88 /gdb/ada-tasks.c | |
parent | 6c0152149476085e6c4c5c812bfc3a06fff7c938 (diff) | |
download | binutils-ccf41c248737eb6650211481366c4e1156ce01ae.zip binutils-ccf41c248737eb6650211481366c4e1156ce01ae.tar.gz binutils-ccf41c248737eb6650211481366c4e1156ce01ae.tar.bz2 |
Use domain_search_flags in lookup_symbol et al
This changes lookup_symbol and associated APIs to accept
domain_search_flags rather than a domain_enum.
Note that this introduces some new constants to Python and Guile. I
chose to break out the documentation patch for this, because the
internals here do not change until a later patch, and it seemed
simpler to patch the docs just once, rather than twice.
Diffstat (limited to 'gdb/ada-tasks.c')
-rw-r--r-- | gdb/ada-tasks.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c index e4aacaf..fd3f5d1 100644 --- a/gdb/ada-tasks.c +++ b/gdb/ada-tasks.c @@ -520,16 +520,17 @@ ada_get_tcb_types_info (void) C-like) lookups to get the first match. */ struct symbol *atcb_sym = - lookup_symbol_in_language (atcb_name, NULL, STRUCT_DOMAIN, + lookup_symbol_in_language (atcb_name, NULL, SEARCH_STRUCT_DOMAIN, language_c, NULL).symbol; const struct symbol *common_atcb_sym = - lookup_symbol_in_language (common_atcb_name, NULL, STRUCT_DOMAIN, + lookup_symbol_in_language (common_atcb_name, NULL, SEARCH_STRUCT_DOMAIN, language_c, NULL).symbol; const struct symbol *private_data_sym = - lookup_symbol_in_language (private_data_name, NULL, STRUCT_DOMAIN, + lookup_symbol_in_language (private_data_name, NULL, SEARCH_STRUCT_DOMAIN, language_c, NULL).symbol; const struct symbol *entry_call_record_sym = - lookup_symbol_in_language (entry_call_record_name, NULL, STRUCT_DOMAIN, + lookup_symbol_in_language (entry_call_record_name, NULL, + SEARCH_STRUCT_DOMAIN, language_c, NULL).symbol; if (atcb_sym == NULL || atcb_sym->type () == NULL) @@ -537,7 +538,7 @@ ada_get_tcb_types_info (void) /* In Ravenscar run-time libs, the ATCB does not have a dynamic size, so the symbol name differs. */ atcb_sym = lookup_symbol_in_language (atcb_name_fixed, NULL, - STRUCT_DOMAIN, language_c, + SEARCH_STRUCT_DOMAIN, language_c, NULL).symbol; if (atcb_sym == NULL || atcb_sym->type () == NULL) @@ -929,7 +930,8 @@ ada_tasks_inferior_data_sniffer (struct ada_tasks_inferior_data *data) data->known_tasks_addr = msym.value_address (); /* Try to get pointer type and array length from the symtab. */ - sym = lookup_symbol_in_language (KNOWN_TASKS_NAME, NULL, VAR_DOMAIN, + sym = lookup_symbol_in_language (KNOWN_TASKS_NAME, NULL, + SEARCH_VAR_DOMAIN, language_c, NULL).symbol; if (sym != NULL) { @@ -975,7 +977,8 @@ ada_tasks_inferior_data_sniffer (struct ada_tasks_inferior_data *data) data->known_tasks_addr = msym.value_address (); data->known_tasks_length = 1; - sym = lookup_symbol_in_language (KNOWN_TASKS_LIST, NULL, VAR_DOMAIN, + sym = lookup_symbol_in_language (KNOWN_TASKS_LIST, NULL, + SEARCH_VAR_DOMAIN, language_c, NULL).symbol; if (sym != NULL && sym->value_address () != 0) { |