]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/powerpc/tm-linux.h
PARAMS removal.
[thirdparty/binutils-gdb.git] / gdb / config / powerpc / tm-linux.h
CommitLineData
c877c8e6
KB
1/* Definitions to target GDB to Linux on 386.
2 Copyright 1992, 1993 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_LINUX_H
21#define TM_LINUX_H
22
23#include "powerpc/tm-ppc-eabi.h"
50c9bd31
KB
24/* Avoid warning from redefinition in tm-sysv4.h (included from tm-linux.h) */
25#undef SKIP_TRAMPOLINE_CODE
26#include "tm-linux.h"
c877c8e6
KB
27
28/* We can single step on linux */
29#undef SOFTWARE_SINGLE_STEP
30#define SOFTWARE_SINGLE_STEP(p,q) abort() /* Will never execute! */
31#undef SOFTWARE_SINGLE_STEP_P
32#define SOFTWARE_SINGLE_STEP_P 0
33
34/* Make sure nexti gets the help it needs for debugging assembly code
35 without symbols */
36
37#define AT_SUBROUTINE_CALL_INSTRUCTION_TARGET(prevpc,stoppc) \
38 at_subroutine_call_instruction_target(prevpc,stoppc)
39extern int at_subroutine_call_instruction_target();
40
41/* We _want_ the SVR4 section offset calculations (see syms_from_objfile()
42 in symfile.c) */
43#undef IBM6000_TARGET
44
45/* Offset to saved PC in sigcontext, from <linux/signal.h>. */
46#define SIGCONTEXT_PC_OFFSET 184
47
c877c8e6
KB
48extern CORE_ADDR ppc_linux_skip_trampoline_code (CORE_ADDR pc);
49#undef SKIP_TRAMPOLINE_CODE
50#define SKIP_TRAMPOLINE_CODE(pc) ppc_linux_skip_trampoline_code (pc)
51
52extern int ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name);
53#undef IN_SIGTRAMP
54#define IN_SIGTRAMP(pc,func_name) ppc_linux_in_sigtramp (pc,func_name)
55
56extern unsigned long ppc_linux_frame_saved_pc (struct frame_info *);
57#undef FRAME_SAVED_PC
58#define FRAME_SAVED_PC(FRAME) ppc_linux_frame_saved_pc (FRAME)
59
60extern void ppc_linux_init_extra_frame_info (int fromleaf, struct frame_info *);
61#undef INIT_EXTRA_FRAME_INFO
62#define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \
63 ppc_linux_init_extra_frame_info (fromleaf, fi)
64
65extern int ppc_linux_frameless_function_invocation (struct frame_info *);
66#undef FRAMELESS_FUNCTION_INVOCATION
67#define FRAMELESS_FUNCTION_INVOCATION(FI) \
68 (ppc_linux_frameless_function_invocation (FI))
69
70extern void ppc_linux_frame_init_saved_regs (struct frame_info *);
71#undef FRAME_INIT_SAVED_REGS
72#define FRAME_INIT_SAVED_REGS(FI) ppc_linux_frame_init_saved_regs (FI)
73
74CORE_ADDR ppc_linux_frame_chain (struct frame_info *);
75#undef FRAME_CHAIN
76#define FRAME_CHAIN(thisframe) ppc_linux_frame_chain (thisframe)
77
a14ed312
KB
78CORE_ADDR ppc_sysv_abi_push_arguments (int, struct value **, CORE_ADDR, int,
79 CORE_ADDR);
c877c8e6
KB
80#undef PUSH_ARGUMENTS
81#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \
82 (ppc_sysv_abi_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr)))
83
84#define CANNOT_FETCH_REGISTER(regno) ((regno) >= MQ_REGNUM)
85#define CANNOT_STORE_REGISTER(regno) ((regno) >= MQ_REGNUM)
86
87/* Linux doesn't use the PowerOpen ABI for function pointer representation */
88#undef CONVERT_FROM_FUNC_PTR_ADDR
89
90#if 0 /* If skip_prologue() isn't too greedy, we don't need this */
91/* There is some problem with the debugging symbols generated by the
92 compiler such that the debugging symbol for the first line of a
93 function overlap with the function prologue. */
94#define PROLOGUE_FIRSTLINE_OVERLAP
95#endif
96
482ca3f5
KB
97/* Needed to handled the self-modifying code situation due to the dynamic
98 linker. */
99int ppc_linux_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache);
100#undef MEMORY_REMOVE_BREAKPOINT
101#define MEMORY_REMOVE_BREAKPOINT(addr, contents_cache) \
102 ppc_linux_memory_remove_breakpoint(addr, contents_cache)
103
50c9bd31
KB
104/* N_FUN symbols in shared libaries have 0 for their values and need
105 to be relocated. */
106#define SOFUN_ADDRESS_MAYBE_MISSING
c877c8e6
KB
107
108#endif /* #ifndef TM_LINUX_H */