OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /or1k/trunk/gdb-5.0/gdb/config/powerpc
    from Rev 107 to Rev 1765
    Reverse comparison

Rev 107 → Rev 1765

/cygwin.mt
0,0 → 1,6
# Target: Powerpc running cygnus's unix api over win32
TDEPFILES= rs6000-tdep.o
TM_FILE= tm-cygwin.h
 
 
 
/gdbserve.mt
0,0 → 1,3
# Target: GDBSERVE.NLM running on a Power-PC
TDEPFILES= ppc.o
CPU_FILE= ppc
/ppc-nw.mt
0,0 → 1,3
# Target: PowerPC running Netware
TDEPFILES= rs6000-tdep.o
TM_FILE= tm-ppc-nw.h
/aix.mh
0,0 → 1,11
# Host: IBM PowerPC running AIX
 
XM_FILE= xm-aix.h
XDEPFILES=
 
NAT_FILE= nm-aix.h
NATDEPFILES= fork-child.o infptrace.o inftarg.o corelow.o rs6000-nat.o xcoffread.o
 
# When compiled with cc, for debugging, this argument should be passed.
# We have no idea who our current compiler is though, so we skip it.
# MH_CFLAGS = -bnodelcsect
/tm-ppc-eabi.h
0,0 → 1,82
/* Macro definitions for Power PC running embedded ABI.
Copyright 1995, 1996, 1997 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#ifndef TM_PPC_EABI_H
#define TM_PPC_EABI_H
 
/* Use generic RS6000 definitions. */
#include "rs6000/tm-rs6000.h"
/* except we want to allow single stepping */
#undef SOFTWARE_SINGLE_STEP_P
#define SOFTWARE_SINGLE_STEP_P 0
 
#undef DEFAULT_LR_SAVE
#define DEFAULT_LR_SAVE 4 /* eabi saves LR at 4 off of SP */
 
#define GDB_TARGET_POWERPC
 
#undef PC_LOAD_SEGMENT
#undef PROCESS_LINENUMBER_HOOK
 
#undef TEXT_SEGMENT_BASE
#define TEXT_SEGMENT_BASE 1
 
/* Say that we're using ELF, not XCOFF. */
#define ELF_OBJECT_FORMAT 1
 
#define TARGET_BYTE_ORDER_SELECTABLE_P 1
 
/* return true if a given `pc' value is in `call dummy' function. */
/* FIXME: This just checks for the end of the stack, which is broken
for things like stepping through gcc nested function stubs. */
#undef PC_IN_CALL_DUMMY
 
/* generic dummy frame stuff */
 
 
 
/* target-specific dummy_frame stuff */
 
extern struct frame_info *rs6000_pop_frame PARAMS ((struct frame_info * frame));
 
extern CORE_ADDR ppc_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR));
 
#undef PUSH_DUMMY_FRAME
#define PUSH_DUMMY_FRAME generic_push_dummy_frame ()
 
#define PUSH_RETURN_ADDRESS(PC, SP) ppc_push_return_address (PC, SP)
 
/* override the standard get_saved_register function with
one that takes account of generic CALL_DUMMY frames */
#define GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval) \
generic_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
 
#define USE_GENERIC_DUMMY_FRAMES 1
#define CALL_DUMMY_BREAKPOINT_OFFSET (0)
#define CALL_DUMMY_LOCATION AT_ENTRY_POINT
#define CALL_DUMMY_ADDRESS() entry_point_address ()
#undef CALL_DUMMY_START_OFFSET
#define CALL_DUMMY_START_OFFSET 0
 
/* The value of symbols of type N_SO and N_FUN maybe null when
it shouldn't be. */
#define SOFUN_ADDRESS_MAYBE_MISSING
 
#endif /* TM_PPC_EABI_H */
/ppc-sim.mt
0,0 → 1,6
# 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
TM_FILE= tm-ppc-eabi.h
 
SIM_OBS = remote-sim.o
SIM = ../sim/ppc/libsim.a
/tm-ppcle-sim.h
0,0 → 1,26
/* Macro definitions for Power PC running embedded ABI under the simulator.
Copyright 1995 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#ifndef TM_PPCLE_SIM_H
#define TM_PPCLE_SIM_H
 
#include "powerpc/tm-ppcle-eabi.h"
 
#endif /* TM_PPCLE_SIM_H */
/ppc-eabi.mt
0,0 → 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
TM_FILE= tm-ppc-eabi.h
/nm-macos.h
0,0 → 1,21
/* PowerMac native-dependent macros for GDB, the GNU debugger.
Copyright (C) 1995 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
/* Nothing needed, at least so far. */
/aix.mt
0,0 → 1,3
# Target: PowerPC running AIX
TDEPFILES= rs6000-tdep.o xcoffsolib.o
TM_FILE= tm-ppc-aix.h
/vxworks.mt
0,0 → 1,3
# Target: Powerpc running VxWorks
TDEPFILES= rs6000-tdep.o
TM_FILE= tm-vxworks.h
/linux.mh
0,0 → 1,10
# Host: PowerPC, running Linux
 
XM_FILE= xm-linux.h
XDEPFILES= ser-tcp.o
XM_CLIBS=
 
NAT_FILE= nm-linux.h
NATDEPFILES= infptrace.o solib.o inftarg.o fork-child.o corelow.o core-aout.o core-regset.o ppc-linux-nat.o linux-thread.o
 
GDBSERVER_DEPFILES= low-linux.o
/macos.mh
0,0 → 1,4
# Host: PowerMac (PowerPC running MacOS)
 
NATDEPFILES= mac-nat.o
NAT_FILE= nm-macos.h
/tm-macos.h
0,0 → 1,27
/* Macro definitions for Power PC running MacOS.
Copyright (C) 1995 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
/* Use generic RS6000 definitions. */
#include "rs6000/tm-rs6000.h"
 
#define GDB_TARGET_POWERPC
 
/* This is no use to us. */
#undef PC_LOAD_SEGMENT
/nm-solaris.h
0,0 → 1,31
/* Native-dependent definitions for PowerPC running Solaris.
Copyright 1996 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
/* Include the generic SVR4 definitions. */
 
#include <nm-sysv4.h>
 
/* Before storing, we need to read all the registers. */
 
#define CHILD_PREPARE_TO_STORE() read_register_bytes (0, NULL, REGISTER_BYTES)
 
/* Solaris PSRVADDR support does not seem to include a place for nPC. */
 
#define PRSVADDR_BROKEN
/xm-mpw.h
0,0 → 1,23
/* Macro definitions for running GDB on Apple Power Macintoshes.
Copyright (C) 1994 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#define HOST_BYTE_ORDER BIG_ENDIAN
 
#include <xm-mpw.h>
/linux.mt
0,0 → 1,3
# Target: Motorola PPC on Linux
TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o
TM_FILE= tm-linux.h
/nm-aix.h
0,0 → 1,23
/* IBM PowerPC native-dependent macros for GDB, the GNU debugger.
Copyright 1995 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#include "rs6000/nm-rs6000.h"
 
#define PTRACE_ARG3_TYPE int*
/solaris.mh
0,0 → 1,19
# Host: PowerPC, running Solaris 2
 
XM_FILE= xm-solaris.h
XDEPFILES= ser-tcp.o
XM_CLIBS= -lsocket -lnsl
 
NAT_FILE= nm-solaris.h
NATDEPFILES= corelow.o core-sol2.o solib.o fork-child.o procfs.o \
proc-api.o proc-events.o proc-flags.o proc-why.o
 
# If you are compiling with Sun's compiler, add the -xs option to CC
# (e.g. `make CC="cc -xs"').
# Sun's compilers require the -xs option to produce debug information
# in the final linked executable. Otherwise they leave it in the .o
# files only, with undocumented pointers to it in the linked executable.
# This is commented out because we don't assume that the Sun compiler
# is in use.
#MH_CFLAGS=-xs
HOST_IPC=-DBSD_IPC
/tm-solaris.h
0,0 → 1,75
/* Macro definitions for GDB for a PowerPC running Solaris 2
Copyright 1996 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#include "powerpc/tm-ppc-eabi.h"
 
/* There are two different signal handler trampolines in Solaris2. */
#define IN_SIGTRAMP(pc, name) \
((name) \
&& (STREQ ("sigacthandler", name) || STREQ ("ucbsigvechandler", name)))
 
/* The signal handler gets a pointer to an ucontext as third argument
if it is called from sigacthandler. This is the offset to the saved
PC within it. sparc_frame_saved_pc knows how to deal with
ucbsigvechandler. */
#define SIGCONTEXT_PC_OFFSET 44
 
#if 0 /* FIXME Setjmp/longjmp are not as well doc'd in SunOS 5.x yet */
 
/* Offsets into jmp_buf. Not defined by Sun, but at least documented in a
comment in <machine/setjmp.h>! */
 
#define JB_ELEMENT_SIZE 4 /* Size of each element in jmp_buf */
 
#define JB_ONSSTACK 0
#define JB_SIGMASK 1
#define JB_SP 2
#define JB_PC 3
#define JB_NPC 4
#define JB_PSR 5
#define JB_G1 6
#define JB_O0 7
#define JB_WBCNT 8
 
/* Figure out where the longjmp will land. We expect that we have just entered
longjmp and haven't yet setup the stack frame, so the args are still in the
output regs. %o0 (O0_REGNUM) points at the jmp_buf structure from which we
extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
This routine returns true on success */
 
extern int
get_longjmp_target PARAMS ((CORE_ADDR *));
 
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
#endif /* 0 */
 
/* The SunPRO compiler puts out 0 instead of the address in N_SO symbols,
and for SunPRO 3.0, N_FUN symbols too. */
#define SOFUN_ADDRESS_MAYBE_MISSING
 
#if 0
extern char *sunpro_static_transform_name PARAMS ((char *));
#define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x)
#endif
 
#define FAULTED_USE_SIGINFO
 
/* Enable handling of shared libraries for a.out executables. */
#define HANDLE_SVR4_EXEC_EMULATORS
/ppcle-eabi.mt
0,0 → 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
TM_FILE= tm-ppcle-eabi.h
/macos.mt
0,0 → 1,3
# Target: PowerMac (PowerPC running MacOS)
TDEPFILES= rs6000-tdep.o xcoffread.o
TM_FILE= tm-macos.h
/xm-solaris.h
0,0 → 1,22
/* Host definitions for a Sun 4, for GDB, the GNU debugger.
Copyright 1996
Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#define HOST_BYTE_ORDER LITTLE_ENDIAN
/tm-vxworks.h
0,0 → 1,28
/* Target machine description for VxWorks on the PowerPC,
for GDB, the GNU debugger.
Copyright 1999 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#ifndef TM_VXWORKS_H
#define TM_VXWORKS_H
 
#include "powerpc/tm-ppc-eabi.h"
#include "tm-vxworks.h"
 
#endif /* ifndef TM_VXWORKS_H */
/xm-aix.h
0,0 → 1,31
/* Parameters for hosting on an PowerPC, for GDB, the GNU debugger.
Copyright 1995 Free Software Foundation, Inc.
Contributed by Cygnus Corporation.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#include "xm-aix4.h"
 
/* This doesn't seem to be declared in any header file I can find. */
char *termdef PARAMS ((int, int));
 
/* UINT_MAX is defined in <sys/limits.h> as a decimal constant (4294967295)
which is too large to fit in a signed int when it is parsed by the
compiler, so it issues a diagnostic. Just undef it here so that we
use gdb's version in defs.h */
#undef UINT_MAX
/solaris.mt
0,0 → 1,3
# Target: PowerPC, running Solaris 2
TDEPFILES= rs6000-tdep.o
TM_FILE= tm-solaris.h
/nm-linux.h
0,0 → 1,64
/* IBM PowerPC native-dependent macros for GDB, the GNU debugger.
Copyright 1995 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
 
#ifndef NM_LINUX_H
#define NM_LINUX_H
 
/* Return sizeof user struct to callers in less machine dependent routines */
 
#define KERNEL_U_SIZE kernel_u_size()
extern int kernel_u_size PARAMS ((void));
 
/* Tell gdb that we can attach and detach other processes */
#define ATTACH_DETACH
 
#define U_REGS_OFFSET 0
 
#define REGISTER_U_ADDR(addr, blockend, regno) \
(addr) = ppc_register_u_addr ((blockend),(regno));
 
/* No <sys/reg.h> */
 
#define NO_SYS_REG_H
 
#ifdef HAVE_LINK_H
#include "solib.h" /* Support for shared libraries. */
#define SVR4_SHARED_LIBS
#endif
 
/* Support for Linuxthreads. */
 
#ifdef __STDC__
struct objfile;
#endif
 
extern void
linuxthreads_new_objfile PARAMS ((struct objfile *objfile));
#define target_new_objfile(OBJFILE) linuxthreads_new_objfile (OBJFILE)
 
extern char *
linuxthreads_pid_to_str PARAMS ((int pid));
#define target_pid_to_str(PID) linuxthreads_pid_to_str (PID)
 
extern int
linuxthreads_prepare_to_proceed PARAMS ((int step));
#define PREPARE_TO_PROCEED(select_it) linuxthreads_prepare_to_proceed (1)
 
 
#endif /* #ifndef NM_LINUX_H */
/tm-linux.h
0,0 → 1,107
/* Definitions to target GDB to Linux on 386.
Copyright 1992, 1993 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
 
#ifndef TM_LINUX_H
#define TM_LINUX_H
 
#include "powerpc/tm-ppc-eabi.h"
/* Avoid warning from redefinition in tm-sysv4.h (included from tm-linux.h) */
#undef SKIP_TRAMPOLINE_CODE
#include "tm-linux.h"
 
/* We can single step on linux */
#undef SOFTWARE_SINGLE_STEP
#define SOFTWARE_SINGLE_STEP(p,q) abort() /* Will never execute! */
#undef SOFTWARE_SINGLE_STEP_P
#define SOFTWARE_SINGLE_STEP_P 0
 
/* Make sure nexti gets the help it needs for debugging assembly code
without symbols */
 
#define AT_SUBROUTINE_CALL_INSTRUCTION_TARGET(prevpc,stoppc) \
at_subroutine_call_instruction_target(prevpc,stoppc)
extern int at_subroutine_call_instruction_target();
 
/* We _want_ the SVR4 section offset calculations (see syms_from_objfile()
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)
 
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 PARAMS ((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)))
 
#define CANNOT_FETCH_REGISTER(regno) ((regno) >= MQ_REGNUM)
#define CANNOT_STORE_REGISTER(regno) ((regno) >= MQ_REGNUM)
 
/* Linux doesn't use the PowerOpen ABI for function pointer representation */
#undef CONVERT_FROM_FUNC_PTR_ADDR
 
#if 0 /* If skip_prologue() isn't too greedy, we don't need this */
/* There is some problem with the debugging symbols generated by the
compiler such that the debugging symbol for the first line of a
function overlap with the function prologue. */
#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
 
#endif /* #ifndef TM_LINUX_H */
/cygwin.mh
0,0 → 1,5
MH_CFLAGS=
XM_FILE=xm-cygwin.h
XDEP_FILES=ser-tcp.o
NATDEPFILES=win32-nat.o
XM_CLIBS=-lkernel32
/tm-cygwin.h
0,0 → 1,21
/* Macro definitions PowerPC running under the Cygwin API.
Copyright 1996 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#include "powerpc/tm-ppcle-eabi.h"
/tm-ppcle-eabi.h
0,0 → 1,31
/* Macro definitions for Power PC running embedded ABI
in little endian mode.
Copyright 1995 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#ifndef TM_PPCLE_EABI_H
#define TM_PPCLE_EABI_H
 
/* Use normal ppc-eabi definitions */
#include "powerpc/tm-ppc-eabi.h"
 
#undef TARGET_BYTE_ORDER_DEFAULT
#define TARGET_BYTE_ORDER_DEFAULT LITTLE_ENDIAN
 
#endif /* TM_PPCLE_EABI_H */
/tm-ppc-aix.h
0,0 → 1,46
/* Macro definitions for Power PC running AIX.
Copyright 1995 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#ifndef TM_PPC_AIX_H
#define TM_PPC_AIX_H
 
/* Use generic RS6000 definitions. */
#include "rs6000/tm-rs6000.h"
 
#define GDB_TARGET_POWERPC
 
#undef PUSH_DUMMY_FRAME
#define PUSH_DUMMY_FRAME generic_push_dummy_frame ()
 
#define PUSH_RETURN_ADDRESS(PC, SP) ppc_push_return_address (PC, SP)
 
/* override the standard get_saved_register function with
one that takes account of generic CALL_DUMMY frames */
#define GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval) \
generic_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
 
#define USE_GENERIC_DUMMY_FRAMES 1
#define CALL_DUMMY_BREAKPOINT_OFFSET (0)
#define CALL_DUMMY_LOCATION AT_ENTRY_POINT
#define CALL_DUMMY_ADDRESS() entry_point_address ()
#undef CALL_DUMMY_START_OFFSET
#define CALL_DUMMY_START_OFFSET 0
 
#endif /* TM_PPC_AIX_H */
/xm-linux.h
0,0 → 1,68
/* Native support for linux, for GDB, the GNU debugger.
Copyright (C) 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
 
#ifndef XM_LINUX_H
#define XM_LINUX_H
 
#define HOST_BYTE_ORDER BIG_ENDIAN
 
#define HAVE_TERMIOS
 
/* This is the amount to subtract from u.u_ar0
+ to get the offset in the core file of the register values. */
#define KERNEL_U_ADDR 0x0
 
#define NEED_POSIX_SETPGID
 
/* Need R_OK etc, but USG isn't defined. */
#include <unistd.h>
 
/* If you expect to use the mmalloc package to obtain mapped symbol files,
for now you have to specify some parameters that determine how gdb places
the mappings in it's address space. See the comments in map_to_address()
for details. This is expected to only be a short term solution. Yes it
is a kludge.
FIXME: Make this more automatic. */
 
#define MMAP_BASE_ADDRESS 0x20000000 /* First mapping here */
#define MMAP_INCREMENT 0x01000000 /* Increment to next mapping */
 
#endif /* #ifndef XM_LINUX_H */
/* Host definitions for a Sun 4, for GDB, the GNU debugger.
Copyright 1996
Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#define HOST_BYTE_ORDER BIG_ENDIAN
/xm-cygwin.h
0,0 → 1,33
/* Definitions for hosting on WIN32, for GDB.
Copyright 1995, 1996, 1998 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#define HOST_BYTE_ORDER LITTLE_ENDIAN
 
#include "fopen-bin.h"
 
#define GDBINIT_FILENAME "gdb.ini"
 
#define SLASH_P(X) ((X)=='\\' || (X) == '/')
#define ROOTED_P(X) ((SLASH_P((X)[0]))|| ((X)[1] ==':'))
#define SLASH_CHAR '/'
#define SLASH_STRING "/"
 
/* Define this lseek(n) != nth byte of file */
#define LSEEK_NOT_LINEAR
/tm-ppc-nw.h
0,0 → 1,32
/* Macro definitions for Power PC running Netware.
Copyright 1994 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#ifndef TM_PPC_NW_H
#define TM_PPC_NW_H
 
/* Use generic RS6000 definitions. */
#include "rs6000/tm-rs6000.h"
 
#define GDB_TARGET_POWERPC
 
#undef PC_LOAD_SEGMENT
#undef PROCESS_LINENUMBER_HOOK
 
#endif /* TM_PPC_NW_H */
/ppcle-sim.mt
0,0 → 1,6
# 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
TM_FILE= tm-ppcle-eabi.h
 
SIM_OBS = remote-sim.o
SIM = ../sim/ppc/libsim.a
/tm-ppc-sim.h
0,0 → 1,26
/* Macro definitions for Power PC running embedded ABI under the simulator.
Copyright 1995 Free Software Foundation, Inc.
 
This file is part of GDB.
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
 
#ifndef TM_PPC_SIM_H
#define TM_PPC_SIM_H
 
#include "powerpc/tm-ppc-eabi.h"
 
#endif /* TM_PPC_SIM_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.