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
http://git.pokylinux.org/cgit.cgi/poky/commit/?id=d1ff9aa4f352224bd82b707d505522f4976d8ed8 adds a POKY_TARGET_SYSROOT variable that you can use.
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!