1130803Smarcel/* Target-dependent code for the ia64. 2130803Smarcel 3130803Smarcel Copyright 2004 Free Software Foundation, Inc. 4130803Smarcel 5130803Smarcel This file is part of GDB. 6130803Smarcel 7130803Smarcel This program is free software; you can redistribute it and/or modify 8130803Smarcel it under the terms of the GNU General Public License as published by 9130803Smarcel the Free Software Foundation; either version 2 of the License, or 10130803Smarcel (at your option) any later version. 11130803Smarcel 12130803Smarcel This program is distributed in the hope that it will be useful, 13130803Smarcel but WITHOUT ANY WARRANTY; without even the implied warranty of 14130803Smarcel MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15130803Smarcel GNU General Public License for more details. 16130803Smarcel 17130803Smarcel You should have received a copy of the GNU General Public License 18130803Smarcel along with this program; if not, write to the Free Software 19130803Smarcel Foundation, Inc., 59 Temple Place - Suite 330, 20130803Smarcel Boston, MA 02111-1307, USA. */ 21130803Smarcel 22130803Smarcel#ifndef IA64_TDEP_H 23130803Smarcel#define IA64_TDEP_H 24130803Smarcel 25131082Smarcel#include "osabi.h" 26130803Smarcel 27131082Smarcel/* Target-dependent structure in gdbarch. */ 28131082Smarcelstruct gdbarch_tdep 29131082Smarcel{ 30131082Smarcel enum gdb_osabi osabi; /* OS/ABI of inferior. */ 31131082Smarcel 32131082Smarcel CORE_ADDR (*sigcontext_register_address) (CORE_ADDR, int); 33131082Smarcel /* OS specific function which, given a frame address 34131082Smarcel and register number, returns the offset to the 35131082Smarcel given register from the start of the frame. */ 36131082Smarcel CORE_ADDR (*find_global_pointer) (CORE_ADDR); 37131082Smarcel}; 38131082Smarcel 39131082Smarcel#define SIGCONTEXT_REGISTER_ADDRESS \ 40131082Smarcel (gdbarch_tdep (current_gdbarch)->sigcontext_register_address) 41131082Smarcel#define FIND_GLOBAL_POINTER \ 42131082Smarcel (gdbarch_tdep (current_gdbarch)->find_global_pointer) 43131082Smarcel 44131082Smarcelextern CORE_ADDR ia64_generic_find_global_pointer (CORE_ADDR); 45131082Smarcel 46130803Smarcel#endif /* IA64_TDEP_H */ 47