This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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: how to build native GDB on mips64 linux ?


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




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