import gdb-19990422 snapshot
[deliverable/binutils-gdb.git] / gdb / config / powerpc / tm-ppc-eabi.h
CommitLineData
c906108c
SS
1/* Macro definitions for Power PC running embedded ABI.
2 Copyright 1995, 1996, 1997 Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20#ifndef TM_PPC_EABI_H
21#define TM_PPC_EABI_H
22
23/* Use generic RS6000 definitions. */
24#include "rs6000/tm-rs6000.h"
25/* except we want to allow single stepping */
26#undef SOFTWARE_SINGLE_STEP_P
27#define SOFTWARE_SINGLE_STEP_P 0
28
29#undef DEFAULT_LR_SAVE
30#define DEFAULT_LR_SAVE 4 /* eabi saves LR at 4 off of SP */
31
32#define GDB_TARGET_POWERPC
33
34#undef PC_LOAD_SEGMENT
35#undef PROCESS_LINENUMBER_HOOK
36
37#undef TEXT_SEGMENT_BASE
38#define TEXT_SEGMENT_BASE 1
39
40/* Say that we're using ELF, not XCOFF. */
41#define ELF_OBJECT_FORMAT 1
42
43#define TARGET_BYTE_ORDER_SELECTABLE_P 1
44
45/* return true if a given `pc' value is in `call dummy' function. */
46/* FIXME: This just checks for the end of the stack, which is broken
47 for things like stepping through gcc nested function stubs. */
48#undef PC_IN_CALL_DUMMY
c906108c
SS
49
50/* generic dummy frame stuff */
51
52
53
54/* target-specific dummy_frame stuff */
55
56extern struct frame_info *rs6000_pop_frame PARAMS ((struct frame_info *frame));
57
58extern CORE_ADDR ppc_push_return_address PARAMS ((CORE_ADDR, CORE_ADDR));
59extern CORE_ADDR rs6000_push_arguments PARAMS ((int nargs,
60 struct value **args,
61 CORE_ADDR sp,
62 unsigned char struct_return,
63 CORE_ADDR struct_addr));
64
65#undef PUSH_DUMMY_FRAME
66#define PUSH_DUMMY_FRAME generic_push_dummy_frame ()
67
68#define PUSH_RETURN_ADDRESS(PC, SP) ppc_push_return_address (PC, SP)
69
70/* override the standard get_saved_register function with
71 one that takes account of generic CALL_DUMMY frames */
7a292a7a
SS
72#define GET_SAVED_REGISTER(raw_buffer, optimized, addrp, frame, regnum, lval) \
73 generic_get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
c906108c 74
7a292a7a 75#define USE_GENERIC_DUMMY_FRAMES 1
c906108c
SS
76#define CALL_DUMMY_BREAKPOINT_OFFSET (0)
77#define CALL_DUMMY_LOCATION AT_ENTRY_POINT
78#define CALL_DUMMY_ADDRESS() entry_point_address ()
79#undef CALL_DUMMY_START_OFFSET
80#define CALL_DUMMY_START_OFFSET 0
81
82
83#endif /* TM_PPC_EABI_H */
This page took 0.027152 seconds and 4 git commands to generate.