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]

how to build native GDB on mips64 linux ?


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.





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