From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baurjan Ismagulov To: gdb@sources.redhat.com Subject: cross-debugger build problem Date: Sat, 31 Mar 2001 13:51:00 -0000 Message-id: <20010401004506.A4137@alatau.ankara.gantek.com> X-SW-Source: 2001-03/msg00336.html Hi, I wish to use gdb to disassemble sparc-sun-linux binaries (with debug info) on an i386-*-linux host. I use gdb 5.0 on RedHat 6.2. I'm going to look into vmlinux built for sparc-linux. While being not sure whether this is supported (I did read excellent gdb/doc/gdb.ps, as well as mailing list archives), I did "configure --target=sparc-sun-linux" and "make". The build failed at gdb/solib.c with errors like solib.c: In function `solib_map_sections': solib.c:369: structure has no member named `lm_addr' ... solib.c: In function `solib_add_common_symbols': solib.c:431: storage size of `inferior_rtc_symb' isn't known solib.c:458: `N_COMM' undeclared (first use in this function) (full output is lengthy, I will send it if anyone can help). Does gdb support disassembling of binaries built for a target different from the host? If yes, how should I build gdb? Otherwise, what are my alternatives (other than running native gdb on sparc-linux)? Thanks in advance, Baurjan.