]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
GDB: aarch64: Use GCS features to calculate hash of struct aarch64_features
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Thu, 11 Sep 2025 01:46:07 +0000 (22:46 -0300)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Wed, 17 Sep 2025 19:40:58 +0000 (16:40 -0300)
commit86e6907244c89bde0d1584dbcbd617b53319d0f9
treeebf673d77a6984ae9342a86142610986f2429a0d
parentb1e2056e37d1c82221ccd2657057357e585605aa
GDB: aarch64: Use GCS features to calculate hash of struct aarch64_features

Luis noticed that when adding the gcs and gcs_linux members to struct
aarch64_features in my Guarded Control Stack patch series, I neglected to
modify struct hash<aarch64_features>::operator() to take them into account
when computing its hash.

This can cause GDB to use the wrong aarch64_features object during a
debugging session.

Regression tested on aarch64-linux-gnu.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33440
Suggested-by: Luis Machado <luis.machado.foss@gmail.com>
Approved-By: Luis Machado <luis.machado.foss@gmail.com>
gdb/arch/aarch64.h