1 |
578 |
markom |
/* Definitions to target GDB to Linux on 386.
|
2 |
|
|
Copyright 1992, 1993, 2000 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) internal_error (__FILE__, __LINE__, "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 |
|
|
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)
|
48 |
|
|
|
49 |
|
|
extern int ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name);
|
50 |
|
|
#undef IN_SIGTRAMP
|
51 |
|
|
#define IN_SIGTRAMP(pc,func_name) ppc_linux_in_sigtramp (pc,func_name)
|
52 |
|
|
|
53 |
|
|
#if 0
|
54 |
|
|
#define CANNOT_FETCH_REGISTER(regno) ((regno) >= MQ_REGNUM)
|
55 |
|
|
#define CANNOT_STORE_REGISTER(regno) ((regno) >= MQ_REGNUM)
|
56 |
|
|
#endif
|
57 |
|
|
|
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
|
63 |
|
|
#endif
|
64 |
|
|
|
65 |
|
|
/* N_FUN symbols in shared libaries have 0 for their values and need
|
66 |
|
|
to be relocated. */
|
67 |
|
|
#define SOFUN_ADDRESS_MAYBE_MISSING
|
68 |
|
|
|
69 |
|
|
#endif /* #ifndef TM_LINUX_H */
|