to build Chrome within chroot and keep the binary not stripped, gdb cannot load the resulting chrome image:
(cr) ((b4c1382...)) glotov@glotov-z600 ~/trunk/src/scripts $ sudo chroot /build/x86-alex/
bash: /dev/null: Is a directory
glotov-z600 / # gdb
GNU gdb (Gentoo 7.1 p1) 7.1
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
(gdb) file /opt/google/chrome/chrome
"/opt/google/chrome/chrome": not in executable format: File truncated
(gdb) quit
glotov-z600 / # which gdb
/usr/bin/gdb
glotov-z600 / # file /usr/bin/gdb
/usr/bin/gdb: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped
If I don't use FEATURES=nostrip, the strip command takes place during the build:
strip: i686-pc-linux-gnu-strip --strip-debug --keep-file-symbols
opt/google/chrome/libosmesa.so
opt/google/chrome/libffmpegsumo.so
opt/google/chrome/chrome-sandbox
and gdb still refuses symbols, although now it have them in /usr/lib/debug/opt/google/chrome/chrome.debug:
Reading symbols from /opt/google/chrome/chrome...`/usr/lib/debug/opt/google/chrome/chrome.debug': can't read symbols: File truncated.
Have anything changed with the way to get symbols for debugging?
Note. My normal defines are:
declare -x BOARD=x86-alex
declare -x BUILDTYPE=Release
declare -x CHROME_ORIGIN=LOCAL_SOURCE
declare -x FEATURES="-usersandbox"
declare -x USE="-build_tests internal chrome_internal"
declare -x KEEP_CHROME_DEBUG_SYMBOLS=1
--
Thank you,
Denis