aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Love <cel@us.ibm.com>2022-07-13 15:24:17 +0000
committerCarl Love <cel@us.ibm.com>2022-07-13 15:24:17 +0000
commit485caa08c024a1bc7e096819080c1e8214d5b960 (patch)
tree7786c09d4f549348f00d76cb7935953f7a17f4e2
parent43127ae5714999118898511e0ec862d892af8106 (diff)
downloadgdb-485caa08c024a1bc7e096819080c1e8214d5b960.zip
gdb-485caa08c024a1bc7e096819080c1e8214d5b960.tar.gz
gdb-485caa08c024a1bc7e096819080c1e8214d5b960.tar.bz2
Add PowerPC support to gdb.cp/call-method-register.cc
This patch adds the needed define ASM_REG for PowerPC. The patch was run on a Power 10 system. The gdb Summary for the run lists 2 expected passes, no unexpected failures or untested testcases. Please let me know if this patch is acceptable for mainline. Carl Love
-rw-r--r--gdb/testsuite/gdb.cp/call-method-register.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/call-method-register.cc b/gdb/testsuite/gdb.cp/call-method-register.cc
index 06e9e53..d60fee0 100644
--- a/gdb/testsuite/gdb.cp/call-method-register.cc
+++ b/gdb/testsuite/gdb.cp/call-method-register.cc
@@ -19,6 +19,8 @@
# define ASM_REG "rax"
#elif defined __i386__
# define ASM_REG "eax"
+#elif defined __powerpc64__
+# define ASM_REG "r9"
#else
# error "port me"
#endif