Bug 763

Summary: not able to create .gdbinit due to permission denied
Product: [Yocto Project Subprojects] Eclipse Plugin Reporter: Lianhao Lu <lianhao.lu>
Component: eclipse-pluginAssignee: liping Ke <liping.ke>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: Undecided CC: jessica.zhang, sgw, yp.ep.watcher, yp.watcher
Version: 1.0   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description Lianhao Lu 2011-02-23 21:32:34 UTC
org.yocto.sdk.ide.createRemoteDebugLauncher() will create a .gdbinit file under target sysroot. This would cause a permission denied issue when the sysroot is untarred from meta-toolchain, because now the /opt/poky is owned by root.

It'd better to put the .gdbinit under project directory instead of the target sysroot.
Comment 1 liping Ke 2011-02-23 22:01:44 UTC



Use project root to store the debug configuration file. Current default toolchain location is not owned by a normal user.


Thanks a lot!
criping
Comment 2 liping Ke 2011-02-23 22:02:15 UTC
This bug should have been fixed by below changeset.


http://git.pokylinux.org/cgit/cgit.cgi/eclipse-poky/commit/?id=fb9b976d88544372c106e31c40f6093e396bbaf7
Comment 3 Lianhao Lu 2011-02-23 22:13:37 UTC
Verified that with the commit http://git.pokylinux.org/cgit/cgit.cgi/eclipse-poky/commit/?id=fb9b976d88544372c106e31c40f6093e396bbaf7, the .gdbinit file is created under the project directory.