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
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 Problem starting gdbserver to debug android NDK application
Jump...
Cancel
Locked
Locked
Replies
6 replies
Subscribers
120 subscribers
Views
4551 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 Problem starting gdbserver to debug android NDK application
Nivelinn Pantev
over 11 years ago
Note: This was originally posted on 29th December 2011 at
http://forums.arm.com
Hi Everyone,
I am facing problem when starting debug session for native code debugging using DS-5 CE,
This is what is shown:
eclipse.buildId=M20110909-1335
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.cpp.product
Error
Wed Dec 28 20:51:17 EET 2011
Failed gdbserver configuration:
Timeout. PID not found!
com.arm.debugger.control.target.TargetControllerException: Failed gdbserver configuration:
Timeout. PID not found!
at com.arm.debugger.control.target.TargetController.runGDB(TargetController.java:623)
at com.arm.debugger.control.target.TargetController.setupAndroid(TargetController.java:108)
at com.arm.debugger.control.target.TargetController.setupGdbServerOnTarget(TargetController.java:121)
at com.arm.debugger.control.target.TargetController.setupTarget(TargetController.java:78)
at com.arm.debugger.control.ConnectionController.doPreDebugServiceInitialization(ConnectionController.java:592)
at com.arm.debugger.control.ConnectionController.doInitialize(ConnectionController.java:533)
at com.arm.debugger.control.ConnectionController.manageThreadModelAndInitialize(ConnectionController.java:524)
at com.arm.debugger.control.ConnectionController.manageConnectionCleanupAndInitialize(ConnectionController.java:510)
at com.arm.debugger.control.ConnectionController.manageProgressResourceAndInitialize(ConnectionController.java:463)
at com.arm.debugger.control.ConnectionController.initializeNonModelConnection(ConnectionController.java:435)
at com.arm.debugger.control.ConnectionController.initialize(ConnectionController.java:410)
at com.arm.debugger.control.ConnectionManager.createConnection(ConnectionManager.java:391)
at com.arm.debugger.launcher.TargetLauncher.connect(TargetLauncher.java:70)
at com.arm.debugger.launcher.TargetLauncher.launch(TargetLauncher.java:44)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
The set-up the environment is based on these guidelines:
http://infocenter.ar...h/CIHEEGJH.html
http://kernel.ozandroid.info/?p=83
I am on 32 bit Ubuntu 11.10 host and debugging is on avd API level 14
What could be the problem?
Thanks a lot in advance!
Albert Cano Camps
over 11 years ago
Cancel
Vote up
0
Vote down
Cancel
Nivelinn Pantev
over 11 years ago
Note: This was originally posted on 4th January 2012 at
http://forums.arm.com
Hi Albert,
And thanks a lot for your assistance!!!
I am going to perform the suggested tests ASAP and let you know what the results are!
Thanks again,
Best Regards,
N
Cancel
Vote up
0
Vote down
Cancel
Nivelinn Pantev
over 11 years ago
Note: This was originally posted on 7th January 2012 at
http://forums.arm.com
Hi Guys,
I tried once more with hello neon example from NDK.
No problem to install and run the application via adb
app_40 2673 1103 119440 30764 ffffffff 400b03c4 S com.example.neon
No problem as well to install and debug Java part via ADT plug-in.
But this is what logcat is showing when trying DS-5:
01-05 17:29:39.184: D/AndroidRuntime(6871): Shutting down VM
01-05 17:29:39.196: D/dalvikvm(6871): GC_CONCURRENT freed 101K, 77% free 483K/2048K, paused 1ms+1ms
01-05 17:29:39.196: D/jdwp(6871): Got wake-up signal, bailing out of select
01-05 17:29:39.196: D/dalvikvm(6871): Debugger has detached; object registry had 1 entries
01-05 17:29:39.226: I/jdwp(89): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.226: I/AndroidRuntime(6871): NOTE: attach of thread 'Binder Thread #3' failed
01-05 17:29:39.237: I/jdwp(143): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.268: I/jdwp(157): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.277: I/jdwp(167): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.309: I/jdwp(184): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.326: I/jdwp(213): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.336: I/jdwp(229): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.364: I/jdwp(258): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.382: I/jdwp(291): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.417: I/jdwp(309): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.432: I/jdwp(326): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.459: I/jdwp(350): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.489: I/jdwp(369): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.489: I/WindowManager(89): createSurface Window{415cae40 Starting com.example.neon paused=false}: DRAW NOW PENDING
01-05 17:29:39.497: I/jdwp(394): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.516: I/jdwp(412): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.538: I/jdwp(800): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.558: I/jdwp(829): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.596: I/jdwp(872): Ignoring second debugger -- accepting and dropping
01-05 17:29:39.618: I/jdwp(941): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.076: D/dalvikvm(6882): Not late-enabling CheckJNI (already on)
01-05 17:29:40.149: I/ActivityManager(89): Start proc com.example.neon for activity com.example.neon/.HelloNeon: pid=6882 uid=10040 gids={1015}
01-05 17:29:40.198: I/jdwp(89): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.207: I/jdwp(143): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.234: I/jdwp(157): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.246: I/jdwp(167): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.258: I/jdwp(184): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.286: I/jdwp(213): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.308: I/jdwp(229): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.329: I/jdwp(258): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.339: I/jdwp(291): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.357: I/jdwp(309): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.377: I/jdwp(326): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.422: I/jdwp(350): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.438: I/jdwp(369): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.458: I/jdwp(394): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.468: I/jdwp(412): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.478: I/jdwp(800): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.496: I/jdwp(829): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.518: I/jdwp(872): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.539: I/jdwp(941): Ignoring second debugger -- accepting and dropping
01-05 17:29:40.828: W/NetworkManagementSocketTagger(89): setKernelCountSet(10040, 1) failed with errno -2
01-05 17:29:41.078: D/dalvikvm(6882): Trying to load lib /data/data/com.example.neon/lib/libhelloneon.so 0x413469f0
01-05 17:29:41.088: D/dalvikvm(6882): Added shared lib /data/data/com.example.neon/lib/libhelloneon.so 0x413469f0
01-05 17:29:41.088: D/dalvikvm(6882): No JNI_OnLoad found in /data/data/com.example.neon/lib/libhelloneon.so 0x413469f0, skipping init
01-05 17:29:41.198: I/helloneon(6882): enter app.....
01-05 17:29:44.216: V/PhoneStatusBar(143): setLightsOn(true)
It seems problem to run gdbserver.
I tried on a real Android device (Linaro Android on i.MX53 QSB), again application is installed and started, but gdbserver PID cannot be found:
logcat:
01-08 00:38:23.110: D/AndroidRuntime(1931): Calling main entry com.android.commands.am.Am
01-08 00:38:23.150: I/ActivityManager(1176): START {flg=0x10000000 cmp=com.example.neon/.HelloNeon} from pid 1931
01-08 00:38:23.210: D/dalvikvm(1941): Not late-enabling CheckJNI (already on)
01-08 00:38:23.220: D/AndroidRuntime(1931): Shutting down VM
01-08 00:38:23.220: I/ActivityManager(1176): Start proc com.example.neon for activity com.example.neon/.HelloNeon: pid=1941 uid=10040 gids={1015}
01-08 00:38:23.240: D/dalvikvm(1931): GC_CONCURRENT freed 101K, 77% free 483K/2048K, paused 0ms+1ms
01-08 00:38:23.240: I/AndroidRuntime(1931): NOTE: attach of thread 'Binder Thread #3' failed
01-08 00:38:23.240: D/jdwp(1931): Got wake-up signal, bailing out of select
01-08 00:38:23.240: D/dalvikvm(1931): Debugger has detached; object registry had 1 entries
01-08 00:38:23.430: D/dalvikvm(1176): GC_EXPLICIT freed 340K, 19% free 10201K/12487K, paused 4ms+8ms
01-08 00:38:23.580: D/dalvikvm(1941): Trying to load lib /data/data/com.example.neon/lib/libhelloneon.so 0x41052a48
01-08 00:38:23.580: D/dalvikvm(1941): Added shared lib /data/data/com.example.neon/lib/libhelloneon.so 0x41052a48
01-08 00:38:23.590: D/dalvikvm(1941): No JNI_OnLoad found in /data/data/com.example.neon/lib/libhelloneon.so 0x41052a48, skipping init
01-08 00:38:23.610: I/helloneon(1941): enter app.....
01-08 00:38:24.030: W/ActivityManager(1176): Activity pause timeout for ActivityRecord{411f2e40 com.example.neon/.HelloNeon}
01-08 00:38:25.990: I/WindowManager(1176): createSurface Window{411f15e0 com.example.neon/com.example.neon.HelloNeon paused=false}: DRAW NOW PENDING
What could be the problem?
Cancel
Vote up
0
Vote down
Cancel
Albert Cano Camps
over 11 years ago
Cancel
Vote up
0
Vote down
Cancel
Nivelinn Pantev
over 11 years ago
Note: This was originally posted on 9th January 2012 at
http://forums.arm.com
Well, negative as well.
the application is running:
app_40 691 37 130940 34864 ffffffff 40011384 S com.example.neon
but:
eclipse.buildId=M20110909-1335
java.version=1.6.0_26
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.cpp.product
Error
Mon Jan 09 19:38:01 EET 2012
Failed gdbserver configuration:
Timeout. PID not found!
com.arm.debugger.control.target.TargetControllerException: Failed gdbserver configuration:
Timeout. PID not found!
at com.arm.debugger.control.target.TargetController.runGDB(TargetController.java:623)
at com.arm.debugger.control.target.TargetController.setupAndroid(TargetController.java:108)
at com.arm.debugger.control.target.TargetController.setupGdbServerOnTarget(TargetController.java:121)
at com.arm.debugger.control.target.TargetController.setupTarget(TargetController.java:78)
at com.arm.debugger.control.ConnectionController.doPreDebugServiceInitialization(ConnectionController.java:592)
at com.arm.debugger.control.ConnectionController.doInitialize(ConnectionController.java:533)
at com.arm.debugger.control.ConnectionController.manageThreadModelAndInitialize(ConnectionController.java:524)
at com.arm.debugger.control.ConnectionController.manageConnectionCleanupAndInitialize(ConnectionController.java:510)
at com.arm.debugger.control.ConnectionController.manageProgressResourceAndInitialize(ConnectionController.java:463)
at com.arm.debugger.control.ConnectionController.initializeNonModelConnection(ConnectionController.java:435)
at com.arm.debugger.control.ConnectionController.initialize(ConnectionController.java:410)
at com.arm.debugger.control.ConnectionManager.createConnection(ConnectionManager.java:391)
at com.arm.debugger.launcher.TargetLauncher.connect(TargetLauncher.java:70)
at com.arm.debugger.launcher.TargetLauncher$ConnectJob.run(TargetLauncher.java:99)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Cancel
Vote up
0
Vote down
Cancel
Albert Cano Camps
over 11 years ago
Cancel
Vote up
0
Vote down
Cancel