diff options
author | Tom Tromey <tromey@adacore.com> | 2023-09-11 08:45:37 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-09-11 11:40:40 -0600 |
commit | 9a343d2bb57c4555dedad9b43907aeeda7b51dae (patch) | |
tree | 3a230b77933274b6513b0a5d576565e36e6e7318 /gdb/inferior.h | |
parent | 14432bde076fdee66e6163993eadf592742935da (diff) | |
download | gdb-9a343d2bb57c4555dedad9b43907aeeda7b51dae.zip gdb-9a343d2bb57c4555dedad9b43907aeeda7b51dae.tar.gz gdb-9a343d2bb57c4555dedad9b43907aeeda7b51dae.tar.bz2 |
Specialize std::hash for ptid_t
This changes hash_ptid to instead be a specialization of std::hash.
This makes it a little easier to use with standard containers.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/inferior.h')
-rw-r--r-- | gdb/inferior.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inferior.h b/gdb/inferior.h index 0467258..29c90d1 100644 --- a/gdb/inferior.h +++ b/gdb/inferior.h @@ -462,7 +462,7 @@ public: /* A map of ptid_t to thread_info*, for average O(1) ptid_t lookup. Exited threads do not appear in the map. */ - std::unordered_map<ptid_t, thread_info *, hash_ptid> ptid_thread_map; + std::unordered_map<ptid_t, thread_info *> ptid_thread_map; /* Returns a range adapter covering the inferior's threads, including exited threads. Used like this: |