Bug 326 - gdb need to set solib-search-path or sysroot and need setup script file export target_sysroot
Summary: gdb need to set solib-search-path or sysroot and need setup script file expor...
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 0.9
Hardware: x86 Multiple
: Medium normal
Target Milestone: 0.9 M4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-09-14 02:37 UTC by liping Ke
Modified: 2010-12-21 06:09 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!