Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
DS-5 Debugging on a Samsung S III
Locked
Locked
Replies
2 replies
Subscribers
120 subscribers
Views
2374 views
Users
0 members are here
Options
Share
More actions
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
DS-5 Debugging on a Samsung S III
Derek Johnson
over 11 years ago
Note: This was originally posted on 22nd May 2013 at
http://forums.arm.com
Hi there,
Assume I know nothing which isn't so far from the truth. I've been trying to use DS-5 to debug native C++ code on my Android Galaxy S III. I've downloaded the community edition and I've followed all the steps documented on the DS-5 website. I've done the follow
1. Built my code with NDK_DEBUG=1
2. In debug configuration selected APK native library debug -> Attach to a running Android application.
I've noticed something odd here, when I fill in the Project Directory and APK file entries the Process and Activity are suppose to fill themselves in. For me they don't.
3. I then place a breakpoint in my Java code, run to this breakpoint and then select Connect To Target in the DS-5 debugger. I get the following error message.
Unable to connect
Reason:
Failed gdbserver configuration:
The script file (run_nostart.py) failed during execution:
Failed to attach gdbserver to . Unable to locate gdbserver in run-as : Package /system/bin/sh is unknown/lib/. Rebuild the application with NDK_DEBUG=1
Which would seem to suggest that the gdbserver was not found. Given I've built my application with NDK_DEBUG=1 I'm pretty confused.
Does anyone have any ideas?
Many thanks,
Derek
0
Quote