This commit is contained in:
27
r13770.diff
27
r13770.diff
@@ -6522,3 +6522,30 @@ Index: coregrind/vgdb.c
|
||||
|| defined(VGA_mips32) || defined(VGA_mips64)
|
||||
#define PTRACEINVOKER
|
||||
#else
|
||||
@@ -911,7 +911,7 @@ Bool invoke_gdbserver (int pid)
|
||||
sp = user_mod.regs.uregs[13];
|
||||
#elif defined(VGA_ppc32)
|
||||
sp = user_mod.regs.gpr[1];
|
||||
-#elif defined(VGA_ppc64)
|
||||
+#elif defined(VGA_ppc64be) || defined(VGA_ppc64le)
|
||||
sp = user_mod.regs.gpr[1];
|
||||
#elif defined(VGA_s390x)
|
||||
sp = user_mod.regs.gprs[15];
|
||||
@@ -975,7 +975,7 @@ Bool invoke_gdbserver (int pid)
|
||||
I_die_here : not x86 or amd64 in x86/amd64 section/
|
||||
#endif
|
||||
|
||||
-#elif defined(VGA_ppc32) || defined(VGA_ppc64)
|
||||
+#elif defined(VGA_ppc32) || defined(VGA_ppc64be) || defined(VGA_ppc64le)
|
||||
user_mod.regs.nip = shared32->invoke_gdbserver;
|
||||
user_mod.regs.trap = -1L;
|
||||
/* put check arg in register 3 */
|
||||
@@ -1042,7 +1042,7 @@ Bool invoke_gdbserver (int pid)
|
||||
assert(0); // cannot vgdb a 64 bits executable with a 32 bits exe
|
||||
#elif defined(VGA_ppc32)
|
||||
assert(0); // cannot vgdb a 64 bits executable with a 32 bits exe
|
||||
-#elif defined(VGA_ppc64)
|
||||
+#elif defined(VGA_ppc64be) || defined(VGA_ppc64le)
|
||||
Addr64 func_addr;
|
||||
Addr64 toc_addr;
|
||||
int rw;
|
||||
|
Reference in New Issue
Block a user