From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23311 invoked by alias); 24 Mar 2004 09:25:00 -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 23303 invoked from network); 24 Mar 2004 09:24:57 -0000 Received: from unknown (HELO mail.ict.ac.cn) (159.226.39.4) by sources.redhat.com with SMTP; 24 Mar 2004 09:24:57 -0000 Received: (qmail 24546 invoked from network); 24 Mar 2004 09:24:12 -0000 Received: from unknown (HELO act24) (159.226.39.137) by mail.ict.ac.cn with SMTP; 24 Mar 2004 09:24:12 -0000 From: "gui" To: Daniel Jacobowitz CC: gdb@sources.redhat.com Subject: Re: how to build native GDB on mips64 linux ? Mime-Version: 1.0 Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit Date: Wed, 24 Mar 2004 13:10:00 -0000 X-SW-Source: 2004-03/txt/msg00226.txt.bz2 Message-ID: <20040324131000.muudHK07OUCpXPGfMvTVYZnotRvEsGx8cU5MFQA0TPI@z> When I tried debugging a mips64/Linux target with i686/Linux host, I got the following results: [gdbserver side] $> ./gdbserver 200.121.3.185:6001 matrix_rev Listening on port 6001 Remote debugging from host 200.121.3.185 readchar: Got EOF Remote side has terminated connection. GDBserver will reopen the connection. [gdb side] $> ./gdb matrix_rev 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 "--host=i686-pc-linux-gnu --target=mips64el-linux"... (gdb) target remote 200.121.3.191:6001 Remote debugging using 200.121.3.191:6001 Couldn't establish connection to remote target Reply contains invalid hex digit 59 gdbserver was configured for mips64el-linux. gdbserver and the debugged program were both compiled with cross gcc 3.3 (mips64el-linux-gcc -mabi=64 -static) on i686/Linux host. "file matrix_rev" gives the following information: ELF 64-bit LSB MIPS-III executable, MIPS, version 1 (SYSV), for GNU/Linux 2.4.0, statically linked, not stripped. Could you give more advice ? Thanks. ======= 2004-03-23 14:25:00 Daniel Jacobowitz wrote: ======= >On Tue, Mar 23, 2004 at 09:30:42AM +0800, guijian wrote: >> Thanks for your attention. >> >> Then, can I use gdb to remote-debug or core-debug a mips64/Linux target >> with i686/Linux host? > >Yes. In 6.1, gdbserver _should_ work. It is lightly tested. > >> Is there any plan to port native mips64/Linux GDB? If such a port does not >> exist, could someone give me some advice where I can start it myself? > >I'm working on it, on and off. I have some more things to fix for >32-bit MIPS GNU/Linux first. > >-- >Daniel Jacobowitz >MontaVista Software Debian GNU/Linux Developer > >. = = = = = = = = = = = = = = = = = = = = gui