gdbsupport: add gdb::string_view_hash
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 20 Oct 2022 17:05:19 +0000 (13:05 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 5 Jan 2023 19:38:51 +0000 (14:38 -0500)
commit1a8605a8c79b0c4ebc71f5691e36a1338d407837
treeecef4a6328ed0a9185e6424bbd7182d092840b17
parent72127b193c970a61a36c940bf167c596ddc32eae
gdbsupport: add gdb::string_view_hash

Add the string_view_hash type, which will be useful to be able to use
gdb::string_view as std::unordered_map keys.

Use it in gdb/symtab.c, to exercise it.

Change-Id: Id69a466ab19a9f6620b5df8a2dd29b5cddd94c00
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/symtab.c
gdbsupport/common-utils.h