diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-03-03 02:10:08 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-03-03 02:10:08 +0000 |
commit | 1d59cee5abf49fb4960dfc3a850a6ce2867aeaf7 (patch) | |
tree | 030b1e8359c26eced53ea6ebb390c2f0c36a0b9a /gdb/ada-lang.c | |
parent | 095ad3b84d615bd84860031fbfc0a620a2c268dc (diff) | |
download | gdb-1d59cee5abf49fb4960dfc3a850a6ce2867aeaf7.zip gdb-1d59cee5abf49fb4960dfc3a850a6ce2867aeaf7.tar.gz gdb-1d59cee5abf49fb4960dfc3a850a6ce2867aeaf7.tar.bz2 |
Remove some unused routines.
* ada-lang.c (is_suppressed_name, ada_suppress_symbol_printing):
Delete.
* ada-lang.c (ada_task_list_iterator_ftype)
(iterate_over_live_ada_tasks): Delete.
* ada-tasks.c (ada_get_environment_task, iterate_over_live_ada_tasks):
Delete.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 671cb35..fbcc32a 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -732,42 +732,6 @@ const struct ada_opname_map ada_opname_table[] = { {NULL, NULL} }; -/* Return non-zero if STR should be suppressed in info listings. */ - -static int -is_suppressed_name (const char *str) -{ - if (strncmp (str, "_ada_", 5) == 0) - str += 5; - if (str[0] == '_' || str[0] == '\000') - return 1; - else - { - const char *p; - const char *suffix = strstr (str, "___"); - if (suffix != NULL && suffix[3] != 'X') - return 1; - if (suffix == NULL) - suffix = str + strlen (str); - for (p = suffix - 1; p != str; p -= 1) - if (isupper (*p)) - { - int i; - if (p[0] == 'X' && p[-1] != '_') - goto OK; - if (*p != 'O') - return 1; - for (i = 0; ada_opname_table[i].encoded != NULL; i += 1) - if (strncmp (ada_opname_table[i].encoded, p, - strlen (ada_opname_table[i].encoded)) == 0) - goto OK; - return 1; - OK:; - } - return 0; - } -} - /* The "encoded" form of DECODED, according to GNAT conventions. The result is valid until the next call to ada_encode. */ @@ -1231,18 +1195,6 @@ ada_match_name (const char *sym_name, const char *name, int wild) && is_name_suffix (sym_name + len_name + 5)); } } - -/* True (non-zero) iff, in Ada mode, the symbol SYM should be - suppressed in info listings. */ - -static int -ada_suppress_symbol_printing (struct symbol *sym) -{ - if (SYMBOL_DOMAIN (sym) == STRUCT_DOMAIN) - return 1; - else - return is_suppressed_name (SYMBOL_LINKAGE_NAME (sym)); -} /* Arrays */ |