Bug 5069 - Eclipse TCF can support arm cpu debug now,but tcf-agent_git.bb can't do it this time.
Summary: Eclipse TCF can support arm cpu debug now,but tcf-agent_git.bb can't do it th...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: Future
Assignee: David Reyna
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-08-29 08:12 UTC by scanli
Modified: 2018-01-25 16:01 UTC (History)
7 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description scanli 2013-08-29 08:12:00 UTC
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
Comment 1 Steve Arnold 2013-12-16 00:29:04 UTC
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
Comment 2 Martin Oberhuber 2015-06-13 05:49:33 UTC
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.
Comment 3 Arno Steffens 2016-01-07 11:43:50 UTC
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?
Comment 4 Martin Oberhuber 2016-01-08 16:03:02 UTC
(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.