Arm Community
Site
Search
User
Site
Search
User
Arm Developer
Documentation
Learning Paths
On-Demand Videos
Groups
Arm Ambassadors
Education Hub
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Automotive forum
Compilers and Libraries forum
Embedded and Microcontrollers forum
High Performance Computing (HPC) forum
Internet of Things (IoT) forum
Keil forum
Laptops and Desktops forum
Mobile, Graphics, and Gaming forum
Morello forum
Operating Systems forum
Servers and Cloud Computing forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI blog
Announcements
Architectures and Processors blog
Automotive blog
Embedded and Microcontrollers blog
Internet of Things (IoT) blog
Laptops and Desktops blog
Mobile, Graphics, and Gaming blog
Operating Systems blog
Servers and Cloud Computing blog
SoC Design and Simulation blog
Tools, Software and IDEs blog
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Arm Development Studio forum
DS-5 Debugging on a Samsung S III
Jump...
Cancel
Locked
Locked
Replies
2 replies
Subscribers
120 subscribers
Views
2371 views
Users
0 members are here
Options
Share
More actions
Cancel
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
Parents
James Shi
over 11 years ago
Note: This was originally posted on 15th July 2013 at
http://forums.arm.com
I forgot to metion that, in the begining , you need to set[color=#222222][font=Arial, Helvetica, sans-serif][size=2] eclipse->windows->preferences->android->NDK to your NDK path in this setup page. this is required[/size][/font][/color] by the google NDK. without this the android native project won't build properly.
Cancel
Vote up
0
Vote down
Cancel
Reply
James Shi
over 11 years ago
Note: This was originally posted on 15th July 2013 at
http://forums.arm.com
I forgot to metion that, in the begining , you need to set[color=#222222][font=Arial, Helvetica, sans-serif][size=2] eclipse->windows->preferences->android->NDK to your NDK path in this setup page. this is required[/size][/font][/color] by the google NDK. without this the android native project won't build properly.
Cancel
Vote up
0
Vote down
Cancel
Children
No data