aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.h
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-09-29 20:15:38 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-09-30 11:21:46 -0500
commitc7ee338a2dc3570c830e6897940f3955c5f632b2 (patch)
treecc6e9ec3b3d2c9c04ee9f7cccdb1ba464864fa92 /gdb/minsyms.h
parent703a86c2fa74e6c998ed24a8823658119f176b2d (diff)
downloadfsf-binutils-gdb-c7ee338a2dc3570c830e6897940f3955c5f632b2.zip
fsf-binutils-gdb-c7ee338a2dc3570c830e6897940f3955c5f632b2.tar.gz
fsf-binutils-gdb-c7ee338a2dc3570c830e6897940f3955c5f632b2.tar.bz2
Improve some comments about msymbol handling
This just clarifies some comments about the hashtables involved in msymbols. gdb/ChangeLog: 2019-09-29 Christian Biesinger <cbiesinger@google.com> * minsyms.h (msymbol_hash): Document that this is a case-insensitive hash and why. * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash, msymbol_hash, msymbol_demangled_hash>: Improve comments.
Diffstat (limited to 'gdb/minsyms.h')
-rw-r--r--gdb/minsyms.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/minsyms.h b/gdb/minsyms.h
index bb43165..ce4b83d 100644
--- a/gdb/minsyms.h
+++ b/gdb/minsyms.h
@@ -159,7 +159,8 @@ bool msymbol_is_function (struct objfile *objfile,
minimal_symbol *minsym,
CORE_ADDR *func_address_p = NULL);
-/* Compute a hash code for the string argument. */
+/* Compute a hash code for the string argument. Unlike htab_hash_string,
+ this is a case-insensitive hash to support "set case-sensitive off". */
unsigned int msymbol_hash (const char *);