-
Notifications
You must be signed in to change notification settings - Fork 0
Remote debugging xwalk on PR3 Tizen 2.1
Prerequisites
- Tizen 2.1 chroot environment with crosswalk sources.
- gdb is installed under chroot and gdbserver installed to device.
- root mode is enabled with sdb (sdb root on)
-
Build debug version of xwalk under chroot environment. E.g., from the crosswalk-1.29.1.0 dir, run: export GYP_GENERATORS='make' ./src/xwalk/gyp_xwalk src/xwalk/xwalk.gyp
-Ddisable_nacl=1
-Duse_aura=1
-Duse_cups=0
-Duse_gconf=0
-Duse_kerberos=0
-Duse_system_bzip2=1
-Duse_system_icu=1
-Duse_system_libexif=1
-Duse_system_libxml=1
-Duse_system_nspr=1
-Denable_xi21_mt=1
-Dtizen_mobile=1
-Dtarget_arch=ia32
-Dcomponent=shared_library make -C src BUILDTYPE=Debug xwalk -
Make a copy of libraries with debug symbols and strip debug info cp -r src/out/Debug/lib.target src/out/Debug/lib.target_stripped strip --strip-debug src/out/Debug/lib.target_stripped/*
-
Move binaries to device sdb push src/out/Debug/lib.target_stripped/ /home/developer/xwalk/lib.target/ sdb push src/out/Debug/xwalk /home/developer/xwalk/ sdb push src/out/Debug/xwalk.pak /home/developer/xwalk/ sdb push src/out/Debug/libffmpegsumo.so /home/developer/xwalk/
-
Setup port forwarding with sdb ( sdb forward tcp:1234 tcp:5678 )
-
Start gdb server from device sdb shell gdbserver a:5678 /home/developer/xwalk/xwalk --fullscreen --ignore-gpu-blacklist --use-gl=egl --allow-file-access-from-files http://www.google.com
-
Start gdb from chroot and attach it to remote server gdb src/out/Debug/xwalk (gdb) target remote localhost:1234
-
If gdb cannot find symbols, you have to set solib-search-path. (gdb) set solib-search-path /home/abuild/rpmbuild/BUILD/crosswalk-1.29.1.0/src/out/Debug/lib.target/.
Happy debugging.