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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [sparc/] [tm-sun4sol2.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
/* Macro definitions for GDB for a Sun 4 running Solaris 2
2
   Copyright 1989, 1992, 1993, 1994, 1995, 1997, 1998
3
   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
#include "sparc/tm-sparc.h"
23
#include "tm-sysv4.h"
24
 
25
/* With Sol2 it is no longer necessary to enable software single-step,
26
   since the /proc interface can take care of it for us in hardware.  */
27
#undef SOFTWARE_SINGLE_STEP
28
#undef SOFTWARE_SINGLE_STEP_P
29
 
30
/* There are two different signal handler trampolines in Solaris2.  */
31
#define IN_SIGTRAMP(pc, name) \
32
  ((name) \
33
   && (STREQ ("sigacthandler", name) || STREQ ("ucbsigvechandler", name)))
34
 
35
/* The signal handler gets a pointer to an ucontext as third argument
36
   if it is called from sigacthandler.  This is the offset to the saved
37
   PC within it.  sparc_frame_saved_pc knows how to deal with
38
   ucbsigvechandler.  */
39
#define SIGCONTEXT_PC_OFFSET 44
40
 
41
#if 0   /* FIXME Setjmp/longjmp are not as well doc'd in SunOS 5.x yet */
42
 
43
/* Offsets into jmp_buf.  Not defined by Sun, but at least documented in a
44
   comment in <machine/setjmp.h>! */
45
 
46
#define JB_ELEMENT_SIZE 4       /* Size of each element in jmp_buf */
47
 
48
#define JB_ONSSTACK 0
49
#define JB_SIGMASK 1
50
#define JB_SP 2
51
#define JB_PC 3
52
#define JB_NPC 4
53
#define JB_PSR 5
54
#define JB_G1 6
55
#define JB_O0 7
56
#define JB_WBCNT 8
57
 
58
/* Figure out where the longjmp will land.  We expect that we have just entered
59
   longjmp and haven't yet setup the stack frame, so the args are still in the
60
   output regs.  %o0 (O0_REGNUM) points at the jmp_buf structure from which we
61
   extract the pc (JB_PC) that we will land at.  The pc is copied into ADDR.
62
   This routine returns true on success */
63
 
64
extern int
65
get_longjmp_target PARAMS ((CORE_ADDR *));
66
 
67
#define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
68
#endif /* 0 */
69
 
70
/* The SunPRO compiler puts out 0 instead of the address in N_SO symbols,
71
   and for SunPRO 3.0, N_FUN symbols too.  */
72
#define SOFUN_ADDRESS_MAYBE_MISSING
73
 
74
extern char *sunpro_static_transform_name PARAMS ((char *));
75
#define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x)
76
#define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '$')
77
 
78
#define FAULTED_USE_SIGINFO
79
 
80
/* Enable handling of shared libraries for a.out executables.  */
81
#define HANDLE_SVR4_EXEC_EMULATORS
82
 
83
/* Macros to extract process id and thread id from a composite pid/tid */
84
#define PIDGET(PID)             (((PID) & 0xffff))
85
#define TIDGET(PID)             (((PID) & 0x7fffffff) >> 16)
86
#define MERGEPID(PID, TID)      (((PID) & 0xffff) | ((TID) << 16))

powered by: WebSVN 2.1.0

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