summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkasperk81 <83082615+kasperk81@users.noreply.github.com>2021-06-26 23:06:51 +0000
committerDave Watson <dade.watson@gmail.com>2021-06-29 16:48:33 -0700
commitea49408206aeff31a2bf37df33ea12ff0ce16409 (patch)
tree04bb65639ba8a06395a3aa3a542c28f47c94bead
parentb09be0e56d74ae36da344de1a32f542badf22ef1 (diff)
downloadlibunwind-ea49408206aeff31a2bf37df33ea12ff0ce16409.tar.gz
Improve multiarch condition in coredump access
-rw-r--r--src/coredump/_UCD_access_reg_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/_UCD_access_reg_linux.c b/src/coredump/_UCD_access_reg_linux.c
index 65b6b9c1..8f050c9e 100644
--- a/src/coredump/_UCD_access_reg_linux.c
+++ b/src/coredump/_UCD_access_reg_linux.c
@@ -57,7 +57,7 @@ _UCD_access_reg (unw_addr_space_t as,
#elif defined(UNW_TARGET_S390X)
if (regnum > UNW_S390X_R15)
goto badreg;
-#elif defined(UNW_TARGET_IA64)
+#elif defined(UNW_TARGET_IA64) || defined(UNW_TARGET_HPPA) || defined(UNW_TARGET_PPC32) || defined(UNW_TARGET_PPC64)
if (regnum >= ARRAY_SIZE(ui->prstatus->pr_reg))
goto badreg;
#else