GSoC: Integrate NaCl debugger with Chrome/Webkit Developer Tools

105 views
Skip to first unread message

Maxim Ermilov

unread,
Jun 3, 2010, 10:11:19 PM6/3/10
to native-cli...@googlegroups.com, chromium...@chromium.org
Hi,

I made a _prototype_ (currently, It works only on linux).

It supports:
1. Call stack
2. inspect variable
3. breakpoints
4. step In / Step Over/ Step Out / Continue
5. watch expressions
6. Activate/deactivate breakpoints

(Patches available at http://code.google.com/p/ndfc/ )

build instruction:
1. Rebuild gdb with patch 0005-mi-fix.patch
    a. put 0005-mi-fix.patch to nacl/native_client/tools/patches/gdb-6.8
    b. delete nacl/native_client/tools/SRC/stamp-gdb nacl/native_client/tools/BUILD/stamp-gdb
    c. make SDKLOC=`pwd`/../src/third_party/nacl_sdk/linux/sdk gdb
2. Build example[s] with debug info
    cd native_client_sdk_0_1_401_0/examples/hello_world
    make OPT_FLAGS="-O0 -g" ARCH_FLAGS=-g
3. Rebuild chromium with patch
4. run chrome with --internal-nacl --nacl-gdb-path=PATH.
5! clear browser cache
6. open page that contain nacl-app.
7. open devtools window
8. wait while gdb attaching(3-4sec).
    Message "Gdb is ready" should appear.
9. It should work

____________
Regards,
Maxim Ermilov
screenshoot.jpg
Reply all
Reply to author
Forward
0 new messages