summaryrefslogtreecommitdiff
path: root/gdb/completer.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/completer.c
parent13123da89a2c7e06a5312ca6b4b24c68ba1c6c2d (diff)
downloadbinutils-gdb-2698f5ead62298979e44a212023027ebb582f3d1.tar.gz
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/completer.c')
-rw-r--r--gdb/completer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/completer.c b/gdb/completer.c
index 2330ad435a8..80e8c7b743e 100644
--- a/gdb/completer.c
+++ b/gdb/completer.c
@@ -1593,7 +1593,7 @@ completion_tracker::discard_completions ()
m_entries_hash.reset (nullptr);
/* A callback used by the hash table to compare new entries with existing
- entries. We can't use the standard streq_hash function here as the
+ entries. We can't use the standard htab_eq_string function here as the
key to our hash is just a single string, while the values we store in
the hash are a struct containing multiple strings. */
static auto entry_eq_func