aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Love <cel@us.ibm.com>2021-11-20 00:12:47 +0000
committerCarl Love <cel@us.ibm.com>2021-11-30 16:01:36 -0600
commit5de7960f76456dd98a5a1dd5d9cfc64048f59a7d (patch)
treed2b640063004312a1081b91c3e030ed275ecf1bf
parent10e1e79e58fee9553575dda4199cc433ce1b1b67 (diff)
downloadgdb-5de7960f76456dd98a5a1dd5d9cfc64048f59a7d.zip
gdb-5de7960f76456dd98a5a1dd5d9cfc64048f59a7d.tar.gz
gdb-5de7960f76456dd98a5a1dd5d9cfc64048f59a7d.tar.bz2
gdb: Powerpc fix gdb.multi/multi-arch-exec.exp test
The expect file has a procedure append_arch_options which sets march based the istarget. The current if / else statement does not check for powerpc64. The else statement is hit which sets march to -m32. This results in compilation errors on 64-bit PowerPC. This patch adds an if statement to check for powerpc64 and if true sets mach to -m64. The patch was tested on a Power 10 system. No compile errors were generated. The test completes with 1 expected pass and no failures.
-rw-r--r--gdb/testsuite/gdb.multi/multi-arch-exec.exp4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.multi/multi-arch-exec.exp b/gdb/testsuite/gdb.multi/multi-arch-exec.exp
index e9a8abd..a5d1ed4 100644
--- a/gdb/testsuite/gdb.multi/multi-arch-exec.exp
+++ b/gdb/testsuite/gdb.multi/multi-arch-exec.exp
@@ -71,7 +71,9 @@ proc append_arch2_options {options_var} {
}
}
- if [istarget "s390*-*-*"] {
+ if [istarget "powerpc64*-*-*"] {
+ set march "-m64"
+ } else if [istarget "s390*-*-*"] {
set march "-m31"
} else {
set march "-m32"