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

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: review fixes Created 6 years, 8 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
« no previous file with comments | « src/trusted/service_runtime/sel_ldr.h ('k') | src/trusted/service_runtime/sel_main_chrome.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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 }
OLDNEW
« no previous file with comments | « src/trusted/service_runtime/sel_ldr.h ('k') | src/trusted/service_runtime/sel_main_chrome.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698