Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Side by Side Diff: src/trusted/service_runtime/sel_ldr.c

Issue 206493005: Provide chrome the option of learning the debug stub port chosen by nacl. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 269
269 nap->exception_handler = 0; 270 nap->exception_handler = 0;
270 if (!NaClMutexCtor(&nap->exception_mu)) { 271 if (!NaClMutexCtor(&nap->exception_mu)) {
271 goto cleanup_desc_mu; 272 goto cleanup_desc_mu;
272 } 273 }
273 nap->enable_exception_handling = 0; 274 nap->enable_exception_handling = 0;
274 #if NACL_WINDOWS 275 #if NACL_WINDOWS
275 nap->debug_exception_handler_state = NACL_DEBUG_EXCEPTION_HANDLER_NOT_STARTED; 276 nap->debug_exception_handler_state = NACL_DEBUG_EXCEPTION_HANDLER_NOT_STARTED;
276 nap->attach_debug_exception_handler_func = NULL; 277 nap->attach_debug_exception_handler_func = NULL;
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after
1330 nacl_global_xlate_base = mem_start; 1331 nacl_global_xlate_base = mem_start;
1331 1332
1332 NaClSandboxMemoryStartForValgrind(mem_start); 1333 NaClSandboxMemoryStartForValgrind(mem_start);
1333 1334
1334 _ovly_debug_event(); 1335 _ovly_debug_event();
1335 } 1336 }
1336 1337
1337 void NaClGdbHook(struct NaClApp const *nap) { 1338 void NaClGdbHook(struct NaClApp const *nap) {
1338 StopForDebuggerInit(nap->mem_start); 1339 StopForDebuggerInit(nap->mem_start);
1339 } 1340 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698