| Summary: | Eclipse TCF can support arm cpu debug now,but tcf-agent_git.bb can't do it this time. | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | scanli <scanli> |
| Component: | devtools / tool chain | Assignee: | David Reyna <david.reyna> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium | CC: | jessica.zhang, meta.mr.watcher, meta.watcher, mober.at, richard.purdie, star, stephen.arnold42 |
| Version: | 2.0 | ||
| Target Milestone: | Future | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
scanli
2013-08-29 08:12:00 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
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. |