Bug 326

Summary: gdb need to set solib-search-path or sysroot and need setup script file export target_sysroot
Product: [Build System, Metadata & Runtime] OE-Core Reporter: liping Ke <liping.ke>
Component: coreAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, kevin.tian, lianhao.lu, meta.mr.watcher, meta.watcher, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Program Management Documentation change: ---

Description liping Ke 2010-09-14 02:37:24 UTC
when running gdb,  gdb need to set solib-search-path or sysroot, otherwise, it will link to native glibc.

So we need Josh's help to export "TARGET_SYSROOT" /opt/poky/sysroot/arm-poky-linux-gnueabi/, so that we can set solib-search-path or sysroot in gdb (write them in a gdb .init file, just as anjuta plugin does, currently anjuta plugin also has bugs, its solib path point to pokysdk sysroot)

And josh, any comments about this?
I assigned this bug to saul since this bug need both sdk team and josh's help:)

And Josh, Thanks a lot for your help!
criping
Comment 1 Richard Purdie 2010-09-16 07:36:46 UTC
http://git.pokylinux.org/cgit.cgi/poky/commit/?id=d1ff9aa4f352224bd82b707d505522f4976d8ed8 adds a POKY_TARGET_SYSROOT variable that you can use.
Comment 2 liping Ke 2010-09-18 19:07:51 UTC
I saw the export POKY_TARGET_SYSROOT with both arm and i586 arch with tip of code. (d1ff9aa4f, RP, Sep. 16, 2010) 
It works fine!