]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove unusual use of core_addr_eq and core_addr_hash
authorTom Tromey <tom@tromey.com>
Wed, 22 Dec 2021 17:30:16 +0000 (10:30 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 29 Dec 2021 17:24:05 +0000 (10:24 -0700)
commitba0084966cfee307631aba6d0f052a39ad773909
tree63012fc81a9af3914b8f5368803dc52a76383b8f
parent003aae076207dbf32f98ba846158fc32669ef85f
Remove unusual use of core_addr_eq and core_addr_hash

gdbtypes.h uses core_addr_eq and core_addr_hash in a weird way: taking
the address of a member and then passing this (as a void*) to these
functions.

It seems better to simply inline the ordinary code here.  CORE_ADDR is
a scalar so it can be directly compared, and the identity hash
function seems safe to assume as well.

After this, core_addr_eq and core_addr_hash are unused, so this patch
removes them.
gdb/gdbtypes.h
gdb/utils.c
gdb/utils.h