[OE-core] [PATCH 1/1] Revert "gdb-cross-canadian: build gdb with python support"
Eric Bénard
eric at eukrea.com
Fri Mar 23 08:31:14 UTC 2012
Hi Khem,
Le Fri, 23 Mar 2012 00:12:25 -0700,
Khem Raj <raj.khem at gmail.com> a écrit :
> OK can you try following patch ? (untested) it does not fix the paths so
> once you install sdk it will have to be fixed as you did with chrpath
> for testing
>
> http://paste.ubuntu.com/896082/
>
> I think issue is currently we are linking with static version of
> libpython and also the search path to find python executable for gdb
> when running is /usr/bin and not the python from SDK so this patch
> takes care of both
>
very good catch, now gdb runs fine and strace shows that it loads
the right library :
open("/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/python2.7/lib-dynload/readline.so",
O_RDONLY) = 6 fstat(6, {st_mode=S_IFREG|0755, st_size=23520, ...}) = 0
futex(0x7f3ada48e0a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/python2.7/lib-dynload/readline.so",
O_RDONLY) = 7 read(7,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`%\0\0\0\0\0\0"..., 832)
= 832 fstat(7, {st_mode=S_IFREG|0755, st_size=23520, ...}) = 0
mmap(NULL, 2118952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 7,
0) = 0x7f3ad8a05000
Eric
More information about the Openembedded-core
mailing list