Menu

#161 Debug using "Remote target" hangs at 75%

Next release
closed-fixed
None
5
2015-02-28
2015-02-04
bruceyustar
No

Hello,

I recently updated all software: eclipse, java, gnuarm, jlink...and then debug using "Remote target" stopped working.

Eclipse version: Luna Service Release 1a (4.4.1), Build id: 20150109-0600
GNU ARM plugin version: 201412191510
GNU ARM Toolset: 4_9-2014q4-20141203
java version: openjdk 1.8.0_31

Using GDB under command-line can connect to the remote target. Here is the log.


[bruceyu@brucethinkcentreSL bin]$ ./arm-none-eabi-gdb
GNU gdb (GNU Tools for ARM Embedded Processors) 7.8.1.20141128-cvs
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=i686-linux-gnu --target=arm-none-eabi".
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".
(gdb) target remote 10.0.1.45:2331
Remote debugging using 10.0.1.45:2331
0x00000000 in ?? ()


If running the debug under eclipse, it hangs at 75%

log from eclipse:


[bruceyu@brucethinkcentreSL bin]$ eclipse&
[bruceyu@brucethinkcentreSL bin]$ OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
0 [main] WARN org.eclipse.xtext.ui.shared.internal.Activator - Disabling JDT use. : org/eclipse/jdt/core/JavaCore
5 [main] WARN org.eclipse.xtext.ui.shared.internal.Activator - Disabling JDT use. : org/eclipse/jdt/core/JavaCore
ilg.gnuarmeclipse.core.start()
ilg.gnuarmeclipse.managedbuild.cross.start()
ilg.gnuarmeclipse.debug.gdbjtag.jlink.start()
ilg.gnuarmeclipse.debug.gdbjtag.start()
ilg.gnuarmeclipse.debug.core.start()
CProjectExtraDataManager()
LaunchConfigurationDelegate.createGdbLaunch(testmsm Debug,debug) ilg.gnuarmeclipse.debug.gdbjtag.jlink.LaunchConfigurationDelegate@4a5b4bae
Launch(testmsm Debug,debug) ilg.gnuarmeclipse.debug.gdbjtag.jlink.Launch@7d232c0b
Launch.initialize() ilg.gnuarmeclipse.debug.gdbjtag.jlink.Launch@7d232c0b
GnuArmLaunch.initialize() ilg.gnuarmeclipse.debug.gdbjtag.jlink.Launch@7d232c0b
LaunchConfigurationDelegate.launch(testmsm Debug,debug) ilg.gnuarmeclipse.debug.gdbjtag.jlink.LaunchConfigurationDelegate@4a5b4bae
LaunchConfigurationDelegate.launchDebugger(testmsm Debug) ilg.gnuarmeclipse.debug.gdbjtag.jlink.LaunchConfigurationDelegate@4a5b4bae
LaunchConfigurationDelegate.launchDebugSession(testmsm Debug) ilg.gnuarmeclipse.debug.gdbjtag.jlink.LaunchConfigurationDelegate@4a5b4bae
LaunchConfigurationDelegate.getGDBVersion 7.8.1.20141128
LaunchConfigurationDelegate.newServiceFactory(testmsm Debug,7.8.1.20141128) ilg.gnuarmeclipse.debug.gdbjtag.jlink.LaunchConfigurationDelegate@4a5b4bae
ServicesFactory(7.8.1.20141128) ilg.gnuarmeclipse.debug.gdbjtag.jlink.ServicesFactory@6eab111c
LaunchConfigurationDelegate.getServerServicesSequence()
GnuArmServerServicesLaunchSequence()
GnuArmGdbServerBackend(org.eclipse.cdt.dsf.service.DsfSession@30,testmsm Debug)
GdbServerBackend(org.eclipse.cdt.dsf.service.DsfSession@30,testmsm Debug)
GdbServerBackend.initialize()
GnuArmGdbServerBackend.initialize()
register ilg.gnuarmeclipse.debug.gdbjtag.jlink.dsf.GdbServerBackend
GdbServerBackend.doInitialize()
Launch.initializeServerConsole()
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!ilg.gnuarmeclipse.debug.gdbjtag.jlink.stop()
Status ERROR: ilg.gnuarmeclipse.debug.gdbjtag code=1 Internal Error java.util.concurrent.ExecutionException: org.eclipse.core.runtime.CoreException: Could not start GDB server.
Server confirmed started.
LaunchConfigurationDelegate.getServicesSequence()
Launch aborted, so exit cleanly
ilg.gnuarmeclipse.debug.gdbjtag.stop()
ilg.gnuarmeclipse.managedbuild.cross.stop()
ilg.gnuarmeclipse.debug.core.stop()
ilg.gnuarmeclipse.core.stop()


Any idea?

Thanks

Bruce

Discussion

  • Liviu Ionescu (ilg)

    • status: open --> open-accepted
    • assigned_to: Liviu Ionescu (ilg)
     
  • Liviu Ionescu (ilg)

    oops! I'll investigate.

     
  • bruceyustar

    bruceyustar - 2015-02-05

    Thank you, Liviu.

    Bruce

     
  • Liviu Ionescu (ilg)

    I just fixed bug #160, which involved using the J-Link GDB server as a remote server, and the latest plug-in was functional.

    could you check the version from updates-test in your configuration?

     
  • bruceyustar

    bruceyustar - 2015-02-09

    Just done a couple of tests, and it seems the updates-test has fixed the problem. Nice!

     
  • Liviu Ionescu (ilg)

    great, thank you!

     
  • Liviu Ionescu (ilg)

    • status: open-accepted --> closed-fixed
     
  • Liviu Ionescu (ilg)

    fixed since 2.6.1-201502281154