From: "guijian" <guijian@ict.ac.cn>
To: gdb@sources.redhat.com <gdb@sources.redhat.com>
Cc: cagney@redhat.com <cagney@redhat.com>
Subject: how to build native GDB on mips64 linux ?
Date: Mon, 22 Mar 2004 14:22:00 -0000 [thread overview]
Message-ID: <20040322142200.6UVCHnBv7E4Wwy95zF2PM6xl08WbeXtbLO3ROREO4ao@z> (raw)
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.
next reply other threads:[~2004-03-22 8:52 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-22 14:22 guijian [this message]
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 14:22 guijian
2004-03-22 17:48 Daniel Jacobowitz
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
2004-03-24 13:10 gui
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040322142200.6UVCHnBv7E4Wwy95zF2PM6xl08WbeXtbLO3ROREO4ao@z \
--to=guijian@ict.ac.cn \
--cc=cagney@redhat.com \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox