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

Subversion Repositories or1k

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

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

Line No. Rev Author Line
1 1181 sfurman
/* Target-dependent definitions for GNU/Linux MIPS.
2
 
3
   Copyright 2001, 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,
20
   Boston, MA 02111-1307, USA.  */
21
 
22
#ifndef TM_MIPSLINUX_H
23
#define TM_MIPSLINUX_H
24
 
25
#include "mips/tm-mips.h"
26
 
27
/* We don't want to inherit tm-mips.h's shared library trampoline code.  */
28
 
29
#undef IN_SOLIB_CALL_TRAMPOLINE
30
#undef IN_SOLIB_RETURN_TRAMPOLINE
31
#undef SKIP_TRAMPOLINE_CODE
32
#undef IGNORE_HELPER_CALL
33
 
34
/* GNU/Linux MIPS has __SIGRTMAX == 127.  */
35
 
36
#ifndef REALTIME_LO
37
#define REALTIME_LO 32
38
#define REALTIME_HI 128
39
#endif
40
 
41
#include "config/tm-linux.h"
42
 
43
/* Use target_specific function to define link map offsets.  */
44
 
45
extern struct link_map_offsets *mips_linux_svr4_fetch_link_map_offsets (void);
46
#define SVR4_FETCH_LINK_MAP_OFFSETS() \
47
  mips_linux_svr4_fetch_link_map_offsets ()
48
 
49
/* Details about jmp_buf.  */
50
 
51
#define MIPS_LINUX_JB_ELEMENT_SIZE 4
52
#define MIPS_LINUX_JB_PC 0
53
 
54
/* Figure out where the longjmp will land.  Slurp the arguments out of the
55
   stack.  We expect the first arg to be a pointer to the jmp_buf structure
56
   from which we extract the pc (JB_PC) that we will land at.  The pc is
57
   copied into ADDR.  This routine returns 1 on success.  */
58
 
59
#define GET_LONGJMP_TARGET(ADDR) mips_linux_get_longjmp_target(ADDR)
60
extern int mips_linux_get_longjmp_target (CORE_ADDR *);
61
 
62
/* We do single stepping in software.  */
63
 
64
#define SOFTWARE_SINGLE_STEP_P() 1
65
#define SOFTWARE_SINGLE_STEP(sig,bp_p) mips_software_single_step (sig, bp_p)
66
 
67
/* FIXME: This still needs to be implemented.  */
68
 
69
#undef  IN_SIGTRAMP
70
#define IN_SIGTRAMP(pc, name)   (0)
71
 
72
#endif /* TM_MIPSLINUX_H */

powered by: WebSVN 2.1.0

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