diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-07-31 20:56:44 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-07-31 20:56:44 +0000 |
commit | 9aa1e687a21389d01f11ddc602b28e6bd59a18d3 (patch) | |
tree | bf88ffac698e201eda1f3edb2730173ede47701f /gdb/config/powerpc | |
parent | dc62a253bcfaefc9aa31b0a05f2b0274b2f406c5 (diff) | |
download | gdb-9aa1e687a21389d01f11ddc602b28e6bd59a18d3.zip gdb-9aa1e687a21389d01f11ddc602b28e6bd59a18d3.tar.gz gdb-9aa1e687a21389d01f11ddc602b28e6bd59a18d3.tar.bz2 |
Make GNU/Linux/PPC work again.
Diffstat (limited to 'gdb/config/powerpc')
-rw-r--r-- | gdb/config/powerpc/aix.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/cygwin.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/macos.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/nbsd.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/ppc-eabi.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/ppc-nw.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/ppc-sim.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/ppcle-eabi.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/ppcle-sim.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/solaris.mt | 2 | ||||
-rw-r--r-- | gdb/config/powerpc/tm-linux.h | 40 | ||||
-rw-r--r-- | gdb/config/powerpc/vxworks.mt | 2 |
12 files changed, 13 insertions, 49 deletions
diff --git a/gdb/config/powerpc/aix.mt b/gdb/config/powerpc/aix.mt index 6d03b7d..38436ee 100644 --- a/gdb/config/powerpc/aix.mt +++ b/gdb/config/powerpc/aix.mt @@ -1,3 +1,3 @@ # Target: PowerPC running AIX -TDEPFILES= rs6000-tdep.o xcoffsolib.o +TDEPFILES= rs6000-tdep.o xcoffsolib.o ppc-linux-tdep.o TM_FILE= tm-ppc-aix.h diff --git a/gdb/config/powerpc/cygwin.mt b/gdb/config/powerpc/cygwin.mt index b86b2af..13a60f1 100644 --- a/gdb/config/powerpc/cygwin.mt +++ b/gdb/config/powerpc/cygwin.mt @@ -1,5 +1,5 @@ # Target: Powerpc running cygnus's unix api over win32 -TDEPFILES= rs6000-tdep.o +TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o TM_FILE= tm-cygwin.h diff --git a/gdb/config/powerpc/macos.mt b/gdb/config/powerpc/macos.mt index 07ad0d2..061d9d6 100644 --- a/gdb/config/powerpc/macos.mt +++ b/gdb/config/powerpc/macos.mt @@ -1,3 +1,3 @@ # Target: PowerMac (PowerPC running MacOS) -TDEPFILES= rs6000-tdep.o xcoffread.o +TDEPFILES= rs6000-tdep.o xcoffread.o ppc-linux-tdep.o TM_FILE= tm-macos.h diff --git a/gdb/config/powerpc/nbsd.mt b/gdb/config/powerpc/nbsd.mt index 2173f65..7a32fd2 100644 --- a/gdb/config/powerpc/nbsd.mt +++ b/gdb/config/powerpc/nbsd.mt @@ -1,5 +1,5 @@ # Target: PowerPC, running NetBSD -TDEPFILES= rs6000-tdep.o +TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o TM_FILE= tm-nbsd.h GDBSERVER_DEPFILES= low-nbsd.o diff --git a/gdb/config/powerpc/ppc-eabi.mt b/gdb/config/powerpc/ppc-eabi.mt index c4e21c8..a142c86 100644 --- a/gdb/config/powerpc/ppc-eabi.mt +++ b/gdb/config/powerpc/ppc-eabi.mt @@ -1,3 +1,3 @@ # Target: PowerPC running eabi -TDEPFILES= ser-ocd.o rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o dink32-rom.o ppc-bdm.o ocd.o remote-sds.o +TDEPFILES= ser-ocd.o rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o dink32-rom.o ppc-bdm.o ocd.o remote-sds.o ppc-linux-tdep.o TM_FILE= tm-ppc-eabi.h diff --git a/gdb/config/powerpc/ppc-nw.mt b/gdb/config/powerpc/ppc-nw.mt index 0eaa23d..3601b4e 100644 --- a/gdb/config/powerpc/ppc-nw.mt +++ b/gdb/config/powerpc/ppc-nw.mt @@ -1,3 +1,3 @@ # Target: PowerPC running Netware -TDEPFILES= rs6000-tdep.o +TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o TM_FILE= tm-ppc-nw.h diff --git a/gdb/config/powerpc/ppc-sim.mt b/gdb/config/powerpc/ppc-sim.mt index c73fef2..a798d10 100644 --- a/gdb/config/powerpc/ppc-sim.mt +++ b/gdb/config/powerpc/ppc-sim.mt @@ -1,5 +1,5 @@ # Target: PowerPC running eabi and including the simulator -TDEPFILES= ser-ocd.o rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o dink32-rom.o ppc-bdm.o ocd.o remote-sds.o +TDEPFILES= ser-ocd.o rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o dink32-rom.o ppc-bdm.o ocd.o remote-sds.o ppc-linux-tdep.o TM_FILE= tm-ppc-eabi.h SIM_OBS = remote-sim.o diff --git a/gdb/config/powerpc/ppcle-eabi.mt b/gdb/config/powerpc/ppcle-eabi.mt index b336a11..6de3f1d 100644 --- a/gdb/config/powerpc/ppcle-eabi.mt +++ b/gdb/config/powerpc/ppcle-eabi.mt @@ -1,3 +1,3 @@ # Target: PowerPC running eabi in little endian mode -TDEPFILES= ser-ocd.o rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o ppc-bdm.o ocd.o +TDEPFILES= ser-ocd.o rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o ppc-bdm.o ocd.o ppc-linux-tdep.o TM_FILE= tm-ppcle-eabi.h diff --git a/gdb/config/powerpc/ppcle-sim.mt b/gdb/config/powerpc/ppcle-sim.mt index f08dafe..401a809 100644 --- a/gdb/config/powerpc/ppcle-sim.mt +++ b/gdb/config/powerpc/ppcle-sim.mt @@ -1,5 +1,5 @@ # Target: PowerPC running eabi in little endian mode under the simulator -TDEPFILES= ser-ocd.o rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o ppc-bdm.o ocd.o +TDEPFILES= ser-ocd.o rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o ppc-bdm.o ocd.o ppc-linux-tdep.o TM_FILE= tm-ppcle-eabi.h SIM_OBS = remote-sim.o diff --git a/gdb/config/powerpc/solaris.mt b/gdb/config/powerpc/solaris.mt index a6e421e..a18ba52 100644 --- a/gdb/config/powerpc/solaris.mt +++ b/gdb/config/powerpc/solaris.mt @@ -1,3 +1,3 @@ # Target: PowerPC, running Solaris 2 -TDEPFILES= rs6000-tdep.o +TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o TM_FILE= tm-solaris.h diff --git a/gdb/config/powerpc/tm-linux.h b/gdb/config/powerpc/tm-linux.h index b1abb0e..99d4c96 100644 --- a/gdb/config/powerpc/tm-linux.h +++ b/gdb/config/powerpc/tm-linux.h @@ -42,9 +42,6 @@ extern int at_subroutine_call_instruction_target(); in symfile.c) */ #undef IBM6000_TARGET -/* Offset to saved PC in sigcontext, from <linux/signal.h>. */ -#define SIGCONTEXT_PC_OFFSET 184 - extern CORE_ADDR ppc_linux_skip_trampoline_code (CORE_ADDR pc); #undef SKIP_TRAMPOLINE_CODE #define SKIP_TRAMPOLINE_CODE(pc) ppc_linux_skip_trampoline_code (pc) @@ -53,36 +50,10 @@ extern int ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name); #undef IN_SIGTRAMP #define IN_SIGTRAMP(pc,func_name) ppc_linux_in_sigtramp (pc,func_name) -extern unsigned long ppc_linux_frame_saved_pc (struct frame_info *); -#undef FRAME_SAVED_PC -#define FRAME_SAVED_PC(FRAME) ppc_linux_frame_saved_pc (FRAME) - -extern void ppc_linux_init_extra_frame_info (int fromleaf, struct frame_info *); -#undef INIT_EXTRA_FRAME_INFO -#define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \ - ppc_linux_init_extra_frame_info (fromleaf, fi) - -extern int ppc_linux_frameless_function_invocation (struct frame_info *); -#undef FRAMELESS_FUNCTION_INVOCATION -#define FRAMELESS_FUNCTION_INVOCATION(FI) \ - (ppc_linux_frameless_function_invocation (FI)) - -extern void ppc_linux_frame_init_saved_regs (struct frame_info *); -#undef FRAME_INIT_SAVED_REGS -#define FRAME_INIT_SAVED_REGS(FI) ppc_linux_frame_init_saved_regs (FI) - -CORE_ADDR ppc_linux_frame_chain (struct frame_info *); -#undef FRAME_CHAIN -#define FRAME_CHAIN(thisframe) ppc_linux_frame_chain (thisframe) - -CORE_ADDR ppc_sysv_abi_push_arguments (int, struct value **, CORE_ADDR, int, - CORE_ADDR); -#undef PUSH_ARGUMENTS -#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \ - (ppc_sysv_abi_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr))) - +#if 0 #define CANNOT_FETCH_REGISTER(regno) ((regno) >= MQ_REGNUM) #define CANNOT_STORE_REGISTER(regno) ((regno) >= MQ_REGNUM) +#endif /* Linux doesn't use the PowerOpen ABI for function pointer representation */ #undef CONVERT_FROM_FUNC_PTR_ADDR @@ -94,13 +65,6 @@ CORE_ADDR ppc_sysv_abi_push_arguments (int, struct value **, CORE_ADDR, int, #define PROLOGUE_FIRSTLINE_OVERLAP #endif -/* Needed to handled the self-modifying code situation due to the dynamic - linker. */ -int ppc_linux_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache); -#undef MEMORY_REMOVE_BREAKPOINT -#define MEMORY_REMOVE_BREAKPOINT(addr, contents_cache) \ - ppc_linux_memory_remove_breakpoint(addr, contents_cache) - /* N_FUN symbols in shared libaries have 0 for their values and need to be relocated. */ #define SOFUN_ADDRESS_MAYBE_MISSING diff --git a/gdb/config/powerpc/vxworks.mt b/gdb/config/powerpc/vxworks.mt index 1c71413..11d8ef2 100644 --- a/gdb/config/powerpc/vxworks.mt +++ b/gdb/config/powerpc/vxworks.mt @@ -1,3 +1,3 @@ # Target: Powerpc running VxWorks -TDEPFILES= rs6000-tdep.o +TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o TM_FILE= tm-vxworks.h |