sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 1 | |
| 2 | /*--------------------------------------------------------------------*/ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 3 | /*--- Header included by every core C file. pub_core_basics.h ---*/ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 4 | /*--------------------------------------------------------------------*/ |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 5 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 6 | /* |
njn | b9c427c | 2004-12-01 14:14:42 +0000 | [diff] [blame] | 7 | This file is part of Valgrind, a dynamic binary instrumentation |
| 8 | framework. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 9 | |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 10 | Copyright (C) 2000-2005 Julian Seward |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 11 | jseward@acm.org |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 12 | |
| 13 | This program is free software; you can redistribute it and/or |
| 14 | modify it under the terms of the GNU General Public License as |
| 15 | published by the Free Software Foundation; either version 2 of the |
| 16 | License, or (at your option) any later version. |
| 17 | |
| 18 | This program is distributed in the hope that it will be useful, but |
| 19 | WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 21 | General Public License for more details. |
| 22 | |
| 23 | You should have received a copy of the GNU General Public License |
| 24 | along with this program; if not, write to the Free Software |
| 25 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 26 | 02111-1307, USA. |
| 27 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 28 | The GNU General Public License is contained in the file COPYING. |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 29 | */ |
| 30 | |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 31 | #ifndef __PUB_CORE_BASICS_H |
| 32 | #define __PUB_CORE_BASICS_H |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 33 | |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 34 | //-------------------------------------------------------------------- |
| 35 | // PURPOSE: This header should be imported by every single C file |
| 36 | // in the core. It contains the basic types and other things needed |
| 37 | // everywhere. |
| 38 | //-------------------------------------------------------------------- |
| 39 | |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 40 | #include "pub_core_basics_asm.h" |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 41 | #include "pub_tool_basics.h" |
| 42 | |
| 43 | /* --------------------------------------------------------------------- |
| 44 | Other headers to include |
| 45 | ------------------------------------------------------------------ */ |
| 46 | |
| 47 | // Might as well have the following two in here, their contents are used so |
| 48 | // broadly (eg. in pub_core_threadstate.h). |
njn | 767eb42 | 2005-06-10 23:09:45 +0000 | [diff] [blame] | 49 | |
| 50 | #include "libvex.h" |
njn | f536bbb | 2005-06-13 04:21:38 +0000 | [diff] [blame] | 51 | |
njn | 767eb42 | 2005-06-10 23:09:45 +0000 | [diff] [blame] | 52 | #if defined(VGA_x86) |
sewardj | efe0f92 | 2005-06-11 10:32:57 +0000 | [diff] [blame] | 53 | # include "libvex_guest_x86.h" |
njn | 767eb42 | 2005-06-10 23:09:45 +0000 | [diff] [blame] | 54 | #elif defined(VGA_amd64) |
sewardj | efe0f92 | 2005-06-11 10:32:57 +0000 | [diff] [blame] | 55 | # include "libvex_guest_amd64.h" |
cerion | 85665ca | 2005-06-20 15:51:07 +0000 | [diff] [blame] | 56 | #elif defined(VGA_ppc32) |
| 57 | # include "libvex_guest_ppc32.h" |
njn | 767eb42 | 2005-06-10 23:09:45 +0000 | [diff] [blame] | 58 | #else |
| 59 | # error Unknown arch |
| 60 | #endif |
| 61 | |
njn | f38dad9 | 2005-07-20 13:18:23 +0000 | [diff] [blame] | 62 | // For jmp_buf |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 63 | #include <setjmp.h> |
njn | d01fef7 | 2005-03-25 23:35:48 +0000 | [diff] [blame] | 64 | |
njn | c7561b9 | 2005-06-19 01:24:32 +0000 | [diff] [blame] | 65 | #endif // __PUB_CORE_BASICS_H |
nethercote | c06e213 | 2004-09-03 13:45:29 +0000 | [diff] [blame] | 66 | |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 67 | /*--------------------------------------------------------------------*/ |
nethercote | 109d0df | 2004-09-02 08:10:13 +0000 | [diff] [blame] | 68 | /*--- end ---*/ |
sewardj | de4a1d0 | 2002-03-22 01:27:54 +0000 | [diff] [blame] | 69 | /*--------------------------------------------------------------------*/ |