I'm trying tcf for arm cpu with yocto tcf-agent_git.bb,but it can't support arm cpu debug now. The Eclipse TCF had addded the new function debug arm cpu. http://tmober.blogspot.com/2013/03/eclipsecon-2013-tcf-arm-debugging-and.html
The current git repo pulls an old version; updating to the 1.1 release builds fine (untested thus far) and I'd wager a full git master/HEAD recipe should also work. The 1.1 changes for rpi are below; obviously the configure_prepend part needs to be adjusted for your machine arch. --- ../meta/recipes-devtools/tcf-agent/tcf-agent_git.bb 2013-12-14 12:18:02.926011494 -0800 +++ recipes-devtools/tcf-agent/tcf-agent_git.bb 2013-12-15 16:18:34.987218227 -0800 @@ -5,19 +5,19 @@ LICENSE = "EPL-1.0 | EDL-1.0" LIC_FILES_CHKSUM = "file://edl-v10.html;md5=522a390a83dc186513f0500543ad3679" -SRCREV = "4ef94ecb927a8912c3d79ce137182247786cff8f" -PV = "0.4.0+git${SRCPV}" -PR = "r2" +SRCREV = "1.1" +PV = "1.1+git${SRCPV}" +PR = "r0" DEPENDS = "util-linux openssl" RDEPENDS_${PN} = "bash" -S = "${WORKDIR}/git" +S = "${WORKDIR}/git/agent" inherit update-rc.d @@ -30,19 +30,17 @@ EXTRA_OEMAKE = "MACHINE=${MAKE_ARCH} OPSYS=${MAKE_OS} 'CC=${CC}' 'AR=${AR}'" -# They don't build on ARM and we don't need them actually. -CFLAGS += "-DSERVICE_RunControl=0 -DSERVICE_Breakpoints=0 \ - -DSERVICE_Memory=0 -DSERVICE_Registers=0 -DSERVICE_MemoryMap=0 \ - -DSERVICE_StackTrace=0 -DSERVICE_Symbols=0 -DSERVICE_LineNumbers=0 \ - -DSERVICE_Expressions=0" +do_configure_prepend() { + cp -aR ${S}/machine/arm ${S}/machine/armv6l +} do_compile() { oe_runmake
Note that with tcf-1.2 , also PPC debug support has been added: https://wiki.eclipse.org/TCF/NewIn12 Suggestion is for YP 1.9 to update to latest released tcf-agent 1.3 , see also https://bugzilla.yoctoproject.org/show_bug.cgi?id=7886 It remains to be decided which tcf-agent services should be enabled on which target architectures. On MIPS, for example, debug is still not supported.
Found, that tcf-agent, created by yocto 2.0 doesn't support debugging. While remote exloring works, in eclipse: debugging configuration / download I get the message : "peer does not support run control service" Running on a ZYNQ (ARM-v7a) board. So, only chance is GDB for debugging?
(In reply to comment #3) Hi Arno, the standard recipe that comes with YP disables the debug services; you can apply the changes from comment 1 to enable them (especially remove the -DSERVICE_*=0 from CFLAGS). Your other option is building a target-side toolchain, and following the advice from https://wiki.eclipse.org/TCF/Raspberry_Pi with TCF master/HEAD.
http://git.yoctoproject.org/cgit.cgi/poky/commit/meta/recipes-devtools/tcf-agent?id=97b36d5ee25b1a758c8b5bf8218d518abec9d4be