OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 /* | 9 /* |
10 * NaCl Simple/secure ELF loader (NaCl SEL). | 10 * NaCl Simple/secure ELF loader (NaCl SEL). |
11 */ | 11 */ |
12 #include "native_client/src/include/build_config.h" | 12 #include "native_client/src/include/build_config.h" |
| 13 |
| 14 #if NACL_WINDOWS |
| 15 #include <intrin.h> |
| 16 #endif |
| 17 |
13 #include "native_client/src/include/portability.h" | 18 #include "native_client/src/include/portability.h" |
14 #include "native_client/src/include/portability_io.h" | 19 #include "native_client/src/include/portability_io.h" |
15 #include "native_client/src/include/portability_string.h" | 20 #include "native_client/src/include/portability_string.h" |
16 #include "native_client/src/include/nacl_macros.h" | 21 #include "native_client/src/include/nacl_macros.h" |
17 | 22 |
18 #include "native_client/src/public/nacl_app.h" | 23 #include "native_client/src/public/nacl_app.h" |
19 | 24 |
20 #include "native_client/src/shared/gio/gio.h" | 25 #include "native_client/src/shared/gio/gio.h" |
21 #include "native_client/src/shared/platform/nacl_check.h" | 26 #include "native_client/src/shared/platform/nacl_check.h" |
22 #include "native_client/src/shared/platform/nacl_exit.h" | 27 #include "native_client/src/shared/platform/nacl_exit.h" |
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
978 nacl_global_xlate_base = mem_start; | 983 nacl_global_xlate_base = mem_start; |
979 | 984 |
980 NaClSandboxMemoryStartForValgrind(mem_start); | 985 NaClSandboxMemoryStartForValgrind(mem_start); |
981 | 986 |
982 _ovly_debug_event(); | 987 _ovly_debug_event(); |
983 } | 988 } |
984 | 989 |
985 void NaClGdbHook(struct NaClApp const *nap) { | 990 void NaClGdbHook(struct NaClApp const *nap) { |
986 StopForDebuggerInit(nap->mem_start); | 991 StopForDebuggerInit(nap->mem_start); |
987 } | 992 } |
OLD | NEW |