Languages

Menu
Sites
Language
Cannot manage to setup and make working the remote debugging with Samsung Gear S3 Frontier

macOS 10.13.3 + Tizen Studio 2.1 + Samsung Gear S3 Frontier, native app. I am not able to get debugger in TS working with the remote device. This is what I got in console:

GNU gdb (GDB) 7.8.1

Copyright (C) 2014 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.  Type "show copying"

and "show warranty" for details.

This GDB was configured as "--host=x86_64-apple-darwin16.5.0 --target=arm-linux-gnueabi".

Type "show configuration" for configuration details.

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

Find the GDB manual and other documentation resources online at:

<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".

Type "apropos word" to search for commands related to "word".

0xf77c0b00 in ?? () from /~~~~~~~~~~~~/tizen-studio/tools/smart-build-interface/../../platforms/tizen-2.3.2/wearable/rootstraps/wearable-2.3.2-device.core/lib/ld-linux.so.3

The Debug perspective shows up but the only active controls are Terminate and Disconnect, Step Into/Over are disabled.

Both the debugged app and gdb are hanging for longer than 10 minutes, I tried to enter some gdb commands but no response. After long timeout, the debugger stops at the breakpoint in the main(). Then I can step over, everything seems to be working, but when I resume, I got "Program terminated with signal SIGSEGV, Segmentation fault."

Is remote debugging supported with wearable native apps in general? What could I try to make it working? I suppose the gdb is not set correctly for the given device. Is any Samsung expert reading this thread, would be fine if we had got some support from them.

Thx for help in advance.
 

 

 

Edited by: Lubos Ilcik on 24 Jan, 2018

Responses

3 Replies
Yasin Ali

Hi,

The debugging environment uses GDB (GNU Debugger) for debugging with the emulator and a target device.
GDB can debug both locally and remotely. To ease the debugging process, you can set break points, step in,
step out, and step over break points, and watch variables to track the changes in their values in the Debug view.

Debugging native applications with Tizen Studio is same as with Eclipse CDT.
Link: http://help.eclipse.org/luna/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Ftasks%2Fcdt_o_debug.htm

Check these link for more details about controls:
1. https://developer.tizen.org/development/training/native-application/application-development-process/debugging-applications
Check for "Table: Debug view control buttons".

Also see
Different Application Debugging Methods

Hope it will help you.
If you find my post is helpful for you, please mark it as answer to promote this post to others.

Lubos Ilcik

Thank you for your tips. I have read all the links you mentioned. Are you able to run debugger with gear watches? What model? What is your settings (Preferences-Debug)?

K Johnson

Re-install Tizen Studio. Check firewall setting and also check if any port blocking problem exists.