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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [i386/] [tm-i386sol2.h] - Diff between revs 107 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
/* Macro definitions for GDB on an Intel i386 running Solaris 2.
/* Macro definitions for GDB on an Intel i386 running Solaris 2.
   Copyright (C) 1998 Free Software Foundation, Inc.
   Copyright (C) 1998 Free Software Foundation, Inc.
 
 
   This file is part of GDB.
   This file is part of GDB.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330,
   Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */
   Boston, MA 02111-1307, USA.  */
 
 
#ifndef TM_I386SOL2_H
#ifndef TM_I386SOL2_H
#define TM_I386SOL2_H 1
#define TM_I386SOL2_H 1
 
 
#define HAVE_I387_REGS
#define HAVE_I387_REGS
#include "i386/tm-i386v4.h"
#include "i386/tm-i386v4.h"
 
 
/* Signal handler frames under Solaris 2 are recognized by a return address
/* Signal handler frames under Solaris 2 are recognized by a return address
   of 0xFFFFFFFF, the third parameter on the signal handler stack is
   of 0xFFFFFFFF, the third parameter on the signal handler stack is
   a pointer to an ucontext.  */
   a pointer to an ucontext.  */
#undef sigtramp_saved_pc
#undef sigtramp_saved_pc
#undef I386V4_SIGTRAMP_SAVED_PC
#undef I386V4_SIGTRAMP_SAVED_PC
#define SIGCONTEXT_PC_OFFSET (36 + 14 * 4)
#define SIGCONTEXT_PC_OFFSET (36 + 14 * 4)
#undef IN_SIGTRAMP
#undef IN_SIGTRAMP
#define IN_SIGTRAMP(pc, name) (pc == 0xFFFFFFFF)
#define IN_SIGTRAMP(pc, name) (pc == 0xFFFFFFFF)
 
 
/* The SunPRO compiler puts out 0 instead of the address in N_SO symbols,
/* The SunPRO compiler puts out 0 instead of the address in N_SO symbols,
   and for SunPRO 3.0, N_FUN symbols too.  */
   and for SunPRO 3.0, N_FUN symbols too.  */
#define SOFUN_ADDRESS_MAYBE_MISSING
#define SOFUN_ADDRESS_MAYBE_MISSING
 
 
extern char *sunpro_static_transform_name PARAMS ((char *));
extern char *sunpro_static_transform_name PARAMS ((char *));
#define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x)
#define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x)
#define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '.')
#define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '.')
 
 
#define FAULTED_USE_SIGINFO
#define FAULTED_USE_SIGINFO
 
 
/* Macros to extract process id and thread id from a composite pid/tid.
/* Macros to extract process id and thread id from a composite pid/tid.
   Allocate lower 16 bits for process id, next 15 bits for thread id, and
   Allocate lower 16 bits for process id, next 15 bits for thread id, and
   one bit for a flag to indicate a user thread vs. a kernel thread.  */
   one bit for a flag to indicate a user thread vs. a kernel thread.  */
#define PIDGET(PID)             (((PID) & 0xffff))
#define PIDGET(PID)             (((PID) & 0xffff))
#define TIDGET(PID)             (((PID) & 0x7fffffff) >> 16)
#define TIDGET(PID)             (((PID) & 0x7fffffff) >> 16)
#define MERGEPID(PID, TID)      (((PID) & 0xffff) | ((TID) << 16))
#define MERGEPID(PID, TID)      (((PID) & 0xffff) | ((TID) << 16))
 
 
#endif /* ifndef TM_I386SOL2_H */
#endif /* ifndef TM_I386SOL2_H */
 
 

powered by: WebSVN 2.1.0

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