From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7515 invoked by alias); 22 Mar 2004 08:52:44 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7497 invoked from network); 22 Mar 2004 08:52:40 -0000 Received: from unknown (HELO mail.ict.ac.cn) (159.226.39.4) by sources.redhat.com with SMTP; 22 Mar 2004 08:52:40 -0000 Received: (qmail 6583 invoked from network); 22 Mar 2004 08:52:17 -0000 Received: from unknown (HELO act24) (159.226.39.137) by mail.ict.ac.cn with SMTP; 22 Mar 2004 08:52:17 -0000 From: "guijian" To: gdb@sources.redhat.com CC: cagney@redhat.com Subject: how to build native GDB on mips64 linux ? Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit Date: Mon, 22 Mar 2004 14:22:00 -0000 X-SW-Source: 2004-03/txt/msg00195.txt.bz2 Message-ID: <20040322142200.6UVCHnBv7E4Wwy95zF2PM6xl08WbeXtbLO3ROREO4ao@z> Hi, Did someone successfully build any native GDB version( 5.3, 6.0 or 6.1) on mips64 Linux ? I build GDB 6.1 with "./configure mips64-linux; make" with the native gcc2.96 and native make3.79. while it built successfully, the resulting binary hung when print symbol or set breakpoint, like this: [gj@Ocea work]$ ../gdb-6.1-native-mips64-linux/gdb/gdb matrix_rev Init MIPS_ABI_O32 in mips_linux_init_abi(...) GNU gdb 6.0.90_2004-03-19-cvs Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "mips64-linux"...Init MIPS_ABI_N64 in mips_linux_init_abi(...) Using host libthread_db library "/usr/tools/lib/libthread_db.so.1". (gdb) info target Symbols from "/home/gj/work/matrix_rev". Local exec file: `/home/gj/work/matrix_rev', file type elf64-tradlittlemips. Entry point: 0x10002fd0 0x0000000010000108 - 0x0000000010002f48 is .MIPS.options 0x0000000010002f48 - 0x0000000010002fc8 is .init 0x0000000010002fd0 - 0x0000000010065760 is .text 0x0000000010065760 - 0x0000000010065f90 is __libc_freeres_fn 0x0000000010065f90 - 0x0000000010065fdc is .fini 0x0000000010065fe0 - 0x000000001007a8f0 is .rodata 0x000000001017a8f0 - 0x0000000010180120 is .data 0x0000000010180120 - 0x0000000010180178 is __libc_subfreeres 0x0000000010180178 - 0x0000000010180180 is __libc_atexit 0x0000000010180180 - 0x000000001018172c is .eh_frame 0x0000000010181730 - 0x0000000010181740 is .ctors 0x0000000010181740 - 0x0000000010181750 is .dtors 0x0000000010181750 - 0x0000000010181758 is .jcr 0x0000000010181760 - 0x0000000010184318 is .got 0x0000000010184318 - 0x000000001018444c is .sbss 0x0000000010184450 - 0x0000000010185a38 is .bss 0x0000000010185a38 - 0x0000000010185a60 is __libc_freeres_ptrs 0x00000000100000e8 - 0x0000000010000108 is .note.ABI-tag (gdb) b main ( hung here. have to be killed to exit.) If the debugged file is executed instead, results will be: (gdb) r Starting program: /home/gj/work/matrix_rev Program received signal SIGTRAP, Trace/breakpoint trap. 0x045f652010002fd0 in ?? () (gdb) bt #0 0x045f652010002fd0 in ?? () ( hung here. have to be killed to exit.) Other commands such as bt, print could not return either. I've tried "./configure mips64el-linux; make" and other, also tied other versions of GDB, but results are same. Native GDB is a must in my project. Would you give some advice ? Best regard.