]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Convert typedef hash to new hash table
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 19 Aug 2024 15:03:51 +0000 (15:03 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 23 Aug 2024 18:37:54 +0000 (14:37 -0400)
commit134a3c34a5185e8173b9971cbd8da65a318dfacf
tree2edd3c326b3d1ec8a6a4f77fd9058aa225278eb3
parentc2dfac7b848822a6382e85a0233f58433ce57dee
Convert typedef hash to new hash table

This converts the typedef hash to use the new hash table.

This patch found a latent bug in the typedef code.  Previously, the
hash function looked at the type name, but the hash equality function
used types_equal -- but that strips typedefs, meaning that equality of
types did not imply equality of hashes.  This patch fixes the problem
and updates the relevant test.

Change-Id: I0d10236b01e74bac79621244a1c0c56f90d65594
Co-Authored-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.cp/ptype-flags.exp
gdb/typeprint.c
gdb/typeprint.h