1 /* Definitions to target GDB to Linux on 386.
2 Copyright 1992, 1993 Free Software Foundation, Inc.
4 This file is part of GDB.
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.
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.
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. */
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
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
34 /* Make sure nexti gets the help it needs for debugging assembly code
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();
41 /* We _want_ the SVR4 section offset calculations (see syms_from_objfile()
45 extern CORE_ADDR ppc_linux_skip_trampoline_code (CORE_ADDR pc);
46 #undef SKIP_TRAMPOLINE_CODE
47 #define SKIP_TRAMPOLINE_CODE(pc) ppc_linux_skip_trampoline_code (pc)
49 extern int ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name);
51 #define IN_SIGTRAMP(pc,func_name) ppc_linux_in_sigtramp (pc,func_name)
54 #define CANNOT_FETCH_REGISTER(regno) ((regno) >= MQ_REGNUM)
55 #define CANNOT_STORE_REGISTER(regno) ((regno) >= MQ_REGNUM)
58 #if 0 /* If skip_prologue() isn't too greedy, we don't need this */
59 /* There is some problem with the debugging symbols generated by the
60 compiler such that the debugging symbol for the first line of a
61 function overlap with the function prologue. */
62 #define PROLOGUE_FIRSTLINE_OVERLAP
65 /* N_FUN symbols in shared libaries have 0 for their values and need
67 #define SOFUN_ADDRESS_MAYBE_MISSING
69 #endif /* #ifndef TM_LINUX_H */