aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-05-07 09:18:18 -0600
committerTom Tromey <tom@tromey.com>2021-05-07 09:18:18 -0600
commit2698f5ead62298979e44a212023027ebb582f3d1 (patch)
tree860ea79a3e5a70c56ec2fb16b0c7d4a7e2d62dcb /gdb/ada-lang.c
parent13123da89a2c7e06a5312ca6b4b24c68ba1c6c2d (diff)
downloadgdb-2698f5ead62298979e44a212023027ebb582f3d1.zip
gdb-2698f5ead62298979e44a212023027ebb582f3d1.tar.gz
gdb-2698f5ead62298979e44a212023027ebb582f3d1.tar.bz2
Remove streq_hash in favor of htab_eq_string
Now that libiberty includes htab_eq_string, we can remove the identical function from gdb. gdb/ChangeLog 2021-05-07 Tom Tromey <tom@tromey.com> * breakpoint.c (ambiguous_names_p): Use htab_eq_string. * utils.c (streq_hash): Remove. * utils.h (streq_hash): Don't declare. * completer.c (completion_tracker::discard_completions): Update comment. * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index e15e583..34b0e92 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -13490,7 +13490,8 @@ When enabled, the debugger will stop using the DW_AT_GNAT_descriptive_type\n\
DWARF attribute."),
NULL, NULL, &maint_set_ada_cmdlist, &maint_show_ada_cmdlist);
- decoded_names_store = htab_create_alloc (256, htab_hash_string, streq_hash,
+ decoded_names_store = htab_create_alloc (256, htab_hash_string,
+ htab_eq_string,
NULL, xcalloc, xfree);
/* The ada-lang observers. */