This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trouble cross debugging


--- Dan Kegel <dank@kegel.com> wrote:

> On 2/23/06, EJS <ejshoor@yahoo.com> wrote:
> > I think that the problem is that the symbol
> > tables from the host and target ld-linux shlibs
> > just dont match. Are they supposed to?
> 
> Better ask on the gdb mailing list.
> - Dan

OK, I verified that I will not be able to debug from
host to target unless the libs (specifically shlibs)
match exactly (although they can be stripped).
Mine don't seem to; so, I thought I should at least
verify that I am using the right configuration. My
source is cygwin and my target is linux. For the
target here are the details:
$ gcc -v
Reading specs from
/usr/lib/gcc/i386-redhat-linux/3.4.4/specs
Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--enable-shared --enable-threads=posix
--disable-checking --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions
--enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)
$ ld -v
GNU ld version 2.15.92.0.2 20040927
$ rpm -q glibc
glibc-2.3.5-0.fc3.1
$ uname -a
Linux jshoor-media.shoor.local 2.6.11-1.27_FC3 #1 Tue
May 17 20:27:37 EDT 2005 i686 i686 i386 GNU/Linux

So for crosstool I chose:
eval `cat i686.dat
gcc-3.4.4-glibc-2.3.5-hdrs-2.6.11.2.dat` sh all.sh
--notest --gdb

Does this sound right? Would I need to set
LINUX_SANITIZED_HEADER_DIR to
linux-libc-headers-2.6.11.1-27 or something?

Thanks again,
J


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]