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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
/* Definitions to target GDB to GNU/Linux on PowerPC.
2
 
3
   Copyright 1992, 1993, 2000, 2002 Free Software Foundation, Inc.
4
 
5
This file is part of GDB.
6
 
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
11
 
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
GNU General Public License for more details.
16
 
17
You should have received a copy of the GNU General Public License
18
along with this program; if not, write to the Free Software
19
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
20
 
21
#ifndef TM_LINUX_H
22
#define TM_LINUX_H
23
 
24
#include "powerpc/tm-ppc-eabi.h"
25
/* Avoid warning from redefinition in tm-sysv4.h (included from tm-linux.h) */
26
#undef SKIP_TRAMPOLINE_CODE
27
#include "config/tm-linux.h"
28
 
29
/* We can single step on linux */
30
#undef  SOFTWARE_SINGLE_STEP
31
#define SOFTWARE_SINGLE_STEP(p,q) internal_error (__FILE__, __LINE__, "Will never execute!")
32
#undef  SOFTWARE_SINGLE_STEP_P
33
#define SOFTWARE_SINGLE_STEP_P() 0
34
 
35
/* Make sure nexti gets the help it needs for debugging assembly code
36
   without symbols */
37
 
38
#define AT_SUBROUTINE_CALL_INSTRUCTION_TARGET(prevpc,stoppc) \
39
   at_subroutine_call_instruction_target(prevpc,stoppc)
40
extern int at_subroutine_call_instruction_target();
41
 
42
/* We _want_ the SVR4 section offset calculations (see syms_from_objfile()
43
   in symfile.c) */
44
#undef IBM6000_TARGET
45
 
46
extern CORE_ADDR ppc_linux_skip_trampoline_code (CORE_ADDR pc);
47
#undef SKIP_TRAMPOLINE_CODE
48
#define SKIP_TRAMPOLINE_CODE(pc) ppc_linux_skip_trampoline_code (pc)
49
 
50
extern int ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name);
51
#undef IN_SIGTRAMP
52
#define IN_SIGTRAMP(pc,func_name) ppc_linux_in_sigtramp (pc,func_name)
53
 
54
#if 0
55
#define CANNOT_FETCH_REGISTER(regno) ((regno) >= MQ_REGNUM)
56
#define CANNOT_STORE_REGISTER(regno) ((regno) >= MQ_REGNUM)
57
#endif
58
 
59
#if 0 /* If skip_prologue() isn't too greedy, we don't need this */
60
/* There is some problem with the debugging symbols generated by the
61
   compiler such that the debugging symbol for the first line of a
62
   function overlap with the function prologue.  */
63
#define PROLOGUE_FIRSTLINE_OVERLAP
64
#endif
65
 
66
/* N_FUN symbols in shared libaries have 0 for their values and need
67
   to be relocated. */
68
#define SOFUN_ADDRESS_MAYBE_MISSING
69
 
70
#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.