| 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). |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 nap->running = 0; | 258 nap->running = 0; |
| 259 nap->exit_status = -1; | 259 nap->exit_status = -1; |
| 260 | 260 |
| 261 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 && NACL_BUILD_SUBARCH == 32 | 261 #if NACL_ARCH(NACL_BUILD_ARCH) == NACL_x86 && NACL_BUILD_SUBARCH == 32 |
| 262 nap->code_seg_sel = 0; | 262 nap->code_seg_sel = 0; |
| 263 nap->data_seg_sel = 0; | 263 nap->data_seg_sel = 0; |
| 264 #endif | 264 #endif |
| 265 | 265 |
| 266 nap->debug_stub_callbacks = NULL; | 266 nap->debug_stub_callbacks = NULL; |
| 267 nap->debug_stub_port = 0; |
| 267 nap->main_nexe_desc = NULL; | 268 nap->main_nexe_desc = NULL; |
| 268 nap->irt_nexe_desc = NULL; | 269 nap->irt_nexe_desc = NULL; |
| 269 | 270 |
| 270 nap->exception_handler = 0; | 271 nap->exception_handler = 0; |
| 271 if (!NaClMutexCtor(&nap->exception_mu)) { | 272 if (!NaClMutexCtor(&nap->exception_mu)) { |
| 272 goto cleanup_desc_mu; | 273 goto cleanup_desc_mu; |
| 273 } | 274 } |
| 274 nap->enable_exception_handling = 0; | 275 nap->enable_exception_handling = 0; |
| 275 #if NACL_WINDOWS | 276 #if NACL_WINDOWS |
| 276 nap->debug_exception_handler_state = NACL_DEBUG_EXCEPTION_HANDLER_NOT_STARTED; | 277 nap->debug_exception_handler_state = NACL_DEBUG_EXCEPTION_HANDLER_NOT_STARTED; |
| (...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 nacl_global_xlate_base = mem_start; | 1332 nacl_global_xlate_base = mem_start; |
| 1332 | 1333 |
| 1333 NaClSandboxMemoryStartForValgrind(mem_start); | 1334 NaClSandboxMemoryStartForValgrind(mem_start); |
| 1334 | 1335 |
| 1335 _ovly_debug_event(); | 1336 _ovly_debug_event(); |
| 1336 } | 1337 } |
| 1337 | 1338 |
| 1338 void NaClGdbHook(struct NaClApp const *nap) { | 1339 void NaClGdbHook(struct NaClApp const *nap) { |
| 1339 StopForDebuggerInit(nap->mem_start); | 1340 StopForDebuggerInit(nap->mem_start); |
| 1340 } | 1341 } |
| OLD | NEW |