Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
DS-5 Debugging on a Samsung S III
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
2 replies
Subscribers
127 subscribers
Views
1398 views
Users
0 members are here
Related
DS-5 Debugging on a Samsung S III
Offline
Derek Johnson
over 7 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
Parents
Offline
James Shi
over 7 years ago
Note: This was originally posted on 15th July 2013 at
http://forums.arm.com
The issue looks like the gdbserver is not present in the Android system / apk packages
[size=2]
[/size]
[size=2]to make sure of that, you can try "adb shell" in any system terminal window to connet to your device/emulator, and then run "[/size]gdbserver --version[size=2]" to confirm that gdbserver is present in the android system.[/size]
[size=2]also you can check whether the gdbserver binary are located in [your_android_project]\libs\armeabi and [/size][size=2][your_android_project]\libs\armeabi-v7a[/size]
[size=2]one thing I'd like to point out: if the auto fill of the "[/size][color=#222222][font=Arial, Helvetica, sans-serif][size=2]APK file entries the Process and Activity[/size][/font][/color][color=#222222][font=Arial, Helvetica, sans-serif][size=2] entries[/size][/font][/color][size=2]" are not happening to your project, most time that is because you project is not build correctly and apk package is not generated.[/size]
[size=2]
[/size]
[size=2]
[/size]
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
James Shi
over 7 years ago
Note: This was originally posted on 15th July 2013 at
http://forums.arm.com
The issue looks like the gdbserver is not present in the Android system / apk packages
[size=2]
[/size]
[size=2]to make sure of that, you can try "adb shell" in any system terminal window to connet to your device/emulator, and then run "[/size]gdbserver --version[size=2]" to confirm that gdbserver is present in the android system.[/size]
[size=2]also you can check whether the gdbserver binary are located in [your_android_project]\libs\armeabi and [/size][size=2][your_android_project]\libs\armeabi-v7a[/size]
[size=2]one thing I'd like to point out: if the auto fill of the "[/size][color=#222222][font=Arial, Helvetica, sans-serif][size=2]APK file entries the Process and Activity[/size][/font][/color][color=#222222][font=Arial, Helvetica, sans-serif][size=2] entries[/size][/font][/color][size=2]" are not happening to your project, most time that is because you project is not build correctly and apk package is not generated.[/size]
[size=2]
[/size]
[size=2]
[/size]
Cancel
Up
0
Down
Reply
Cancel
Children
No data
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Suggested Answer
Positioning a function in a Position Independent Executable for ARMV8
0
5720
views
3
replies
Latest
1 month ago
by
Stephen Theobald
Answered
Link a pure binary file to image with scatter file
0
5676
views
3
replies
Latest
1 month ago
by
Ronan Synnott
Answered
Failed to read contents of Internal RAM L1-I_DATA in ARM DS
0
Arm Development Studio
Cache
Debug and Trace Services Layer (DTSL)
9915
views
23
replies
Latest
1 month ago
by
Boon Khai
Suggested Answer
DS-5 connect fail when cortex-r5 is in lock-step mode
0
8258
views
10
replies
Latest
2 months ago
by
Stuart Hirons
Suggested Answer
On Cortex-M4F microcontrollers: is fixed point math faster or floating point?
0
7927
views
10
replies
Latest
2 months ago
by
Ronan Synnott
<
>
View all questions in Arm Development Studio forum