/* Macro definitions for i386 running under Interix Copyright 2002 Free Software Foundation, Inc. This file is part of GDB. 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 the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef TM_INTERIX_H #define TM_INTERIX_H #include "i386/tm-i386.h" /* configure can't be expected to noodle out MS's alternate spelling for 64-bit integers, so we'll tell it. */ #define PRINTF_HAS_LONG_LONG 1 #ifdef __GNUC__ #define BFD_HOST_64_BIT long long #define BFD_HOST_U_64_BIT unsigned long long #elif defined(_MSC_VER) #define BFD_HOST_64_BIT __int64 #define BFD_HOST_U_64_BIT unsigned __int64 #else #error... OK what compiler is this? #endif #undef LONGEST #define LONGEST BFD_HOST_64_BIT #undef ULONGEST #define ULONGEST BFD_HOST_U_64_BIT #define I386_FLOATS_RETURN_IN_ST0 /* Interix has a minimal sbrk() (but not what's wanted for this usage), and it's relationship to environ[] is not what's usually expected (as in, there is no specific relationship at all). Just pretend we don't have an sbrk(). */ #undef HAVE_SBRK #define ADJUST_OBJFILE_OFFSETS(objfile, type) \ pei_adjust_objfile_offsets(objfile, type) extern CORE_ADDR bfd_getImageBase(bfd *abfd); #define NONZERO_LINK_BASE(abfd) bfd_getImageBase(abfd) #define NAME_OF_MALLOC "_malloc" #endif /* TM_INTERIX_H */