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

Issue 6995160: Hooks for out-of-process (OOP) debugger. (Closed)

Created:
9 years, 6 months ago by garianov1
Modified:
9 years, 6 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Hooks in sel_ldr for out-of-process (OOP) debugger. Only Windows hooks are implemented, placeholders are provided for other platforms. bug=none test=manual: 1) change line win\nacl_oop_debugger_hooks.c:53 if (IsDebuggerPresent()) { -> if (true) { 2) build chrome 3) start dbgview.exe (download it from: http://technet.microsoft.com/en-us/sysinternals/bb896647) 4) start custom chrome (from step #2) 5) navigate to tha page with nexe 6) in dbgview you should get something like this: 11.62454796 [6060] {7AA7C9CF-89EC-4ed3-8DAD-6DC84302AB11} -version 1 -event AppCreate -nap 00000000001CD3F0 -mem_start 0000000C00000000 -user_entry_pt 0000000000020080 -initial_entry_pt 0000000008000080 11.62480354 [6060] {7AA7C9CF-89EC-4ed3-8DAD-6DC84302AB11} -version 1 -event ThreadCreate -natp 0000000002304C50 7) navigate off the page 8) in dbgview you should get something like this: 23.96814728 [6060] {7AA7C9CF-89EC-4ed3-8DAD-6DC84302AB11} -version 1 \ -event ThreadExit -natp 0000000002304C50 -exit_code 1 23.96838570 [6060] {7AA7C9CF-89EC-4ed3-8DAD-6DC84302AB11} -version 1 \ -event AppExit -exit_code 1 Committed: http://src.chromium.org/viewvc/native_client?view=rev&revision=5639

Patch Set 1 : '' #

Total comments: 16

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Total comments: 8

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 2

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -0 lines) Patch
M src/trusted/service_runtime/build.scons View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
A src/trusted/service_runtime/linux/nacl_oop_debugger_hooks.c View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/nacl_app_thread.c View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
A src/trusted/service_runtime/nacl_oop_debugger_hooks.h View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
A src/trusted/service_runtime/osx/nacl_oop_debugger_hooks.c View 1 2 3 4 5 6 7 1 chunk +28 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/sel_ldr_standard.c View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M src/trusted/service_runtime/service_runtime.gyp View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
A src/trusted/service_runtime/win/nacl_oop_debugger_hooks.c View 1 2 3 4 5 6 7 1 chunk +107 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
garianov1
9 years, 6 months ago (2011-06-13 19:33:32 UTC) #1
Mark Seaborn
Some initial reactions. You need to fill out "BUG" and "TEST" fields. How would I ...
9 years, 6 months ago (2011-06-13 19:40:51 UTC) #2
garianov1
PTAL, added service_runtime.gyp http://codereview.chromium.org/6995160/diff/4003/src/trusted/service_runtime/nacl_app_thread.c File src/trusted/service_runtime/nacl_app_thread.c (right): http://codereview.chromium.org/6995160/diff/4003/src/trusted/service_runtime/nacl_app_thread.c#newcode146 src/trusted/service_runtime/nacl_app_thread.c:146: natp->nap->debug_stub_callbacks->thread_exit_hook(natp); On 2011/06/13 19:40:51, Mark Seaborn ...
9 years, 6 months ago (2011-06-13 20:09:10 UTC) #3
garianov1
On 2011/06/13 19:40:51, Mark Seaborn wrote: > Some initial reactions. > > You need to ...
9 years, 6 months ago (2011-06-13 20:14:04 UTC) #4
bsy
http://codereview.chromium.org/6995160/diff/13/src/trusted/service_runtime/nacl_oop_debugger_hooks.c File src/trusted/service_runtime/nacl_oop_debugger_hooks.c (right): http://codereview.chromium.org/6995160/diff/13/src/trusted/service_runtime/nacl_oop_debugger_hooks.c#newcode1 src/trusted/service_runtime/nacl_oop_debugger_hooks.c:1: /* Copyright (c) 2011 The Native Client Authors. All ...
9 years, 6 months ago (2011-06-13 20:36:49 UTC) #5
garianov1
PTAL http://codereview.chromium.org/6995160/diff/13/src/trusted/service_runtime/nacl_oop_debugger_hooks.c File src/trusted/service_runtime/nacl_oop_debugger_hooks.c (right): http://codereview.chromium.org/6995160/diff/13/src/trusted/service_runtime/nacl_oop_debugger_hooks.c#newcode1 src/trusted/service_runtime/nacl_oop_debugger_hooks.c:1: /* Copyright (c) 2011 The Native Client Authors. ...
9 years, 6 months ago (2011-06-13 20:52:32 UTC) #6
garianov1
> this file has enough OS-conditionalizing that it is probably better to put > OS-specific ...
9 years, 6 months ago (2011-06-13 21:02:14 UTC) #7
garianov1
PTAL
9 years, 6 months ago (2011-06-13 21:16:22 UTC) #8
bsy
http://codereview.chromium.org/6995160/diff/3006/src/trusted/service_runtime/nacl_oop_debugger_hooks.c File src/trusted/service_runtime/nacl_oop_debugger_hooks.c (right): http://codereview.chromium.org/6995160/diff/3006/src/trusted/service_runtime/nacl_oop_debugger_hooks.c#newcode81 src/trusted/service_runtime/nacl_oop_debugger_hooks.c:81: char prefix[] = "{7AA7C9CF-89EC-4ed3-8DAD-6DC84302AB11} -version 1 "; shouldn't this ...
9 years, 6 months ago (2011-06-13 21:23:42 UTC) #9
bsy
ooops. race condition in reviewing. :-) i added more comments to previous rev, but they ...
9 years, 6 months ago (2011-06-13 21:25:17 UTC) #10
garianov1
PTAL http://codereview.chromium.org/6995160/diff/3006/src/trusted/service_runtime/nacl_oop_debugger_hooks.c File src/trusted/service_runtime/nacl_oop_debugger_hooks.c (right): http://codereview.chromium.org/6995160/diff/3006/src/trusted/service_runtime/nacl_oop_debugger_hooks.c#newcode81 src/trusted/service_runtime/nacl_oop_debugger_hooks.c:81: char prefix[] = "{7AA7C9CF-89EC-4ed3-8DAD-6DC84302AB11} -version 1 "; On ...
9 years, 6 months ago (2011-06-13 21:41:06 UTC) #11
bsy
one nit. o/w lgtm. http://codereview.chromium.org/6995160/diff/9001/src/trusted/service_runtime/win/nacl_oop_debugger_hooks.c File src/trusted/service_runtime/win/nacl_oop_debugger_hooks.c (right): http://codereview.chromium.org/6995160/diff/9001/src/trusted/service_runtime/win/nacl_oop_debugger_hooks.c#newcode85 src/trusted/service_runtime/win/nacl_oop_debugger_hooks.c:85: } so with count == ...
9 years, 6 months ago (2011-06-13 22:49:58 UTC) #12
garianov1
http://codereview.chromium.org/6995160/diff/9001/src/trusted/service_runtime/win/nacl_oop_debugger_hooks.c File src/trusted/service_runtime/win/nacl_oop_debugger_hooks.c (right): http://codereview.chromium.org/6995160/diff/9001/src/trusted/service_runtime/win/nacl_oop_debugger_hooks.c#newcode85 src/trusted/service_runtime/win/nacl_oop_debugger_hooks.c:85: } On 2011/06/13 22:49:58, bsy wrote: > so with ...
9 years, 6 months ago (2011-06-14 15:55:57 UTC) #13
garianov1
9 years, 6 months ago (2011-06-14 16:50:13 UTC) #14
committed as rev 5639

Powered by Google App Engine
This is Rietveld 408576698