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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [powerpc/] [tm-linux.h] - Blame information for rev 106

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
/* Definitions to target GDB to Linux on 386.
2
   Copyright 1992, 1993 Free Software Foundation, Inc.
3
 
4
This file is part of GDB.
5
 
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
10
 
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
GNU General Public License for more details.
15
 
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, 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"
24
/* Avoid warning from redefinition in tm-sysv4.h (included from tm-linux.h) */
25
#undef SKIP_TRAMPOLINE_CODE
26
#include "tm-linux.h"
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)
39
extern 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
 
48
extern 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
 
52
extern 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
 
56
extern 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
 
60
extern 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
 
65
extern 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
 
70
extern 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
 
74
CORE_ADDR ppc_linux_frame_chain (struct frame_info *);
75
#undef FRAME_CHAIN
76
#define FRAME_CHAIN(thisframe) ppc_linux_frame_chain (thisframe)
77
 
78
CORE_ADDR ppc_sysv_abi_push_arguments PARAMS ((int, struct value **, CORE_ADDR, int, CORE_ADDR));
79
#undef PUSH_ARGUMENTS
80
#define PUSH_ARGUMENTS(nargs, args, sp, struct_return, struct_addr) \
81
  (ppc_sysv_abi_push_arguments((nargs), (args), (sp), (struct_return), (struct_addr)))
82
 
83
#define CANNOT_FETCH_REGISTER(regno) ((regno) >= MQ_REGNUM)
84
#define CANNOT_STORE_REGISTER(regno) ((regno) >= MQ_REGNUM)
85
 
86
/* Linux doesn't use the PowerOpen ABI for function pointer representation */
87
#undef CONVERT_FROM_FUNC_PTR_ADDR
88
 
89
#if 0 /* If skip_prologue() isn't too greedy, we don't need this */
90
/* There is some problem with the debugging symbols generated by the
91
   compiler such that the debugging symbol for the first line of a
92
   function overlap with the function prologue.  */
93
#define PROLOGUE_FIRSTLINE_OVERLAP
94
#endif
95
 
96
/* Needed to handled the self-modifying code situation due to the dynamic
97
   linker. */
98
int ppc_linux_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache);
99
#undef MEMORY_REMOVE_BREAKPOINT
100
#define MEMORY_REMOVE_BREAKPOINT(addr, contents_cache) \
101
  ppc_linux_memory_remove_breakpoint(addr, contents_cache)
102
 
103
/* N_FUN symbols in shared libaries have 0 for their values and need
104
   to be relocated. */
105
#define SOFUN_ADDRESS_MAYBE_MISSING
106
 
107
#endif  /* #ifndef TM_LINUX_H */

powered by: WebSVN 2.1.0

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