mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 04:24:43 +00:00
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>
This commit is contained in:
@@ -94,6 +94,10 @@ namespace std
|
||||
|
||||
/* SME2 feature. */
|
||||
h = h << 1 | features.sme2;
|
||||
|
||||
h = h << 1 | features.gcs;
|
||||
h = h << 1 | features.gcs_linux;
|
||||
|
||||
return h;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user