| Summary: | Creating debug session fails when SDK is not installed in the default location | ||
|---|---|---|---|
| Product: | [Yocto Project Subprojects] Eclipse Plugin | Reporter: | Gabriel Barbu <gabriel.barbu> |
| Component: | eclipse-plugin | Assignee: | Jessica <jessica.zhang> |
| Status: | RESOLVED NOTABUG | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | adrian.dudau, ioanax.grigoropol, yp.ep.watcher, yp.watcher |
| Version: | unspecified | ||
| Target Milestone: | 1.5 | ||
| Hardware: | x86 | ||
| OS: | x86_64 | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Gabriel Barbu
2013-05-17 14:05:30 UTC
Hi Gabriel, Can you provide more info about your setup, what is your sysroot? and what is your toolchain, what in eclipse preference is your ADT setup. Also, are you usin the defult hello world ansi c project? Thanks, Jessica Hi Jessica, Here is the info: sysroot: runqemu-extract-sdk my_view/poky/build/tmp/deploy/images/core-image-sato-sdk-qemux86.tar.bz2 ~/ym-ciss-qx86-sysroot Toolchain: my_view/poky/build/tmp/deploy/sdk/poky-eglibc-x86_64-i586-toolchain-1.4+snapshot.sh ./poky-eglibc-x86_64-i586-toolchain-1.4+snapshot.sh ~/toolchain ADT setup: - Standalone pre-build toolchain - Toolchain location: ~/toolchain - Sysroot location: ~/toolchain/sysroots - Target architecture: i586-poky-linux - Target Options: QEMU - Kernel: my_view/poky/build/tmp/deploy/images/bzImage-qemux86.bin - Custom Options: nographic Project: Yocto Project ADT Autotools Project > Hello World ANSI C Autotools Project Also, I found (as a workaround) that if I source the environment before starting Eclipse/from the same shell, then it works. Best regards, Gabriel Hi Gabriel, Your sysroot should be set to: ~/ym-ciss-qx86-sysroot Hi Jessica, I tried setting the sysroot as you suggested (actually now that one is: /opt/ym-ciss-qx86-sysroot due to another cross-host issue we had). I get the same behavior and the same workaround applies. I think the problem is that from what you could see in the External Tools Configuration > Arguments: -e "source /opt/ytc/environment-setup-i586-poky-linux;runqemu qemux86 /media/sdd1/fb/gaba/ym/poky/build/tmp/deploy/images/bzImage-qemux86.bin /opt/ym-ciss-qx86-sysroot nographic;bash" this part is not executed: “source /opt/ytc/environment-setup-i586-poky-linux”. At least this explains why the workaround I mentioned above works. Best regards, Gabriel Hi Gabriel, I took another look of the bug, you need to start qemu session first then bring up the debug session, the debugger won't bring up qemu session for you and I just can't reproduce the issue on my end. Thanks, Jessica |