This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFC] Make GNU/Linux/PPC port work again
- To: kevinb at cygnus dot com
- Subject: Re: [PATCH RFC] Make GNU/Linux/PPC port work again
- From: Nick Duffek <nsd at redhat dot com>
- Date: Mon, 31 Jul 2000 00:36:05 -0400
- CC: gdb-patches at sourceware dot cygnus dot com
- References: <1000719220642.ZM16166@ocotillo.lan>
On 19-Jul-2000, Kevin Buettner wrote:
>I'd appreciate it if those of you (hi Nick!) affected by this code
>would test it before I commit this patch.
I don't see any regressions on AIX after applying your change plus the
attached patch, which is needed because CORE_ADDR is 64 bits on AIX.
Nick
Index: gdb/ppc-linux-tdep.c
===================================================================
diff -up gdb/ppc-linux-tdep.c gdb/ppc-linux-tdep.c
--- gdb/ppc-tdep.h Sun Jul 30 23:54:53 2000
+++ gdb/ppc-tdep.h Sun Jul 30 23:53:02 2000
@@ -20,7 +20,7 @@
Boston, MA 02111-1307, USA. */
/* From ppc-linux-tdep.c... */
-unsigned long ppc_linux_frame_saved_pc (struct frame_info *fi);
+CORE_ADDR ppc_linux_frame_saved_pc (struct frame_info *fi);
void ppc_linux_init_extra_frame_info (int fromleaf, struct frame_info *);
int ppc_linux_frameless_function_invocation (struct frame_info *);
void ppc_linux_frame_init_saved_regs (struct frame_info *);
@@ -31,7 +31,7 @@ int ppc_linux_memory_remove_breakpoint (
/* From rs6000-tdep.c... */
-unsigned long rs6000_frame_saved_pc (struct frame_info *fi);
+CORE_ADDR rs6000_frame_saved_pc (struct frame_info *fi);
void rs6000_init_extra_frame_info (int fromleaf, struct frame_info *);
int rs6000_frameless_function_invocation (struct frame_info *);
void rs6000_frame_init_saved_regs (struct frame_info *);
Index: gdb/ppc-linux-tdep.c
===================================================================
diff -up gdb/ppc-linux-tdep.c gdb/ppc-linux-tdep.c
--- gdb/ppc-linux-tdep.c Sun Jul 30 23:53:20 2000
+++ gdb/ppc-linux-tdep.c Sun Jul 30 23:53:02 2000
@@ -310,7 +310,7 @@ ppc_linux_skip_trampoline_code (CORE_ADD
/* The rs6000 version of FRAME_SAVED_PC will almost work for us. The
signal handler details are different, so we'll handle those here
and call the rs6000 version to do the rest. */
-unsigned long
+CORE_ADDR
ppc_linux_frame_saved_pc (struct frame_info *fi)
{
if (fi->signal_handler_caller)