* [rfa:ppc} fix e500 struct return
@ 2002-10-01 21:06 Andrew Cagney
2002-10-02 9:19 ` Kevin Buettner
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cagney @ 2002-10-01 21:06 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
Hello,
The attached fixes struct return address for the e500. Same problem as
with my previous patch for alloca_reg - needed to be biased.
ok?
Andrew
[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 735 bytes --]
2002-10-01 Andrew Cagney <ac131313@redhat.com>
* rs6000-tdep.c (rs6000_store_struct_return): Store struct return
address in 3 biased by ppc_gp0_regnum.
Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/rs6000-tdep.c,v
retrieving revision 2.148.2.12
diff -u -r2.148.2.12 rs6000-tdep.c
--- rs6000-tdep.c 2002/10/02 02:25:02 2.148.2.12
+++ rs6000-tdep.c 2002/10/02 04:01:40
@@ -2285,7 +2285,8 @@
static void
rs6000_store_struct_return (CORE_ADDR addr, CORE_ADDR sp)
{
- write_register (3, addr);
+ struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
+ write_register (tdep->ppc_gp0_regnum + 3, addr);
rs6000_struct_return_address = addr;
}
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-10-02 21:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-01 21:06 [rfa:ppc} fix e500 struct return Andrew Cagney
2002-10-02 9:19 ` Kevin Buettner
2002-10-02 14:21 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox