From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31937 invoked by alias); 28 Feb 2009 09:14:06 -0000 Received: (qmail 31928 invoked by uid 22791); 28 Feb 2009 09:14:05 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_13 X-Spam-Check-By: sourceware.org Received: from 39.mail-out.ovh.net (HELO 39.mail-out.ovh.net) (213.251.138.60) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Sat, 28 Feb 2009 09:13:59 +0000 Received: (qmail 29976 invoked by uid 503); 28 Feb 2009 09:14:17 -0000 Received: from b7.ovh.net (HELO mail141.ha.ovh.net) (213.186.33.57) by 39.mail-out.ovh.net with SMTP; 28 Feb 2009 09:14:17 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 28 Feb 2009 09:13:56 -0000 Received: from 11.156.90-79.rev.gaoland.net (HELO ?192.168.1.101?) (laurent%guerby.net@79.90.156.11) by ns0.ovh.net with SMTP; 28 Feb 2009 09:13:50 -0000 Subject: GDB 6.8 on sparc64-linux not working From: Laurent GUERBY To: gdb@sourceware.org Content-Type: text/plain Date: Sat, 28 Feb 2009 09:14:00 -0000 Message-Id: <1235812429.11347.438.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 21955049666846404 X-Ovh-Remote: 79.90.156.11 (11.156.90-79.rev.gaoland.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00175.txt.bz2 Hi, I built GDB 6.8 on sparc64-linux (running debian etch / kernel Debian 2.6.18.dfsg.1-24) as follows: ./configure --prefix=/opt/cfarm/gdb-6.8-64 --target=sparc64-unknown-linux-gnu --disable-nls With this GDB I'm unable to breakpoint on a simple C program compiled in 64 bits as shown below. System provided GDB 6.4.90 seems to work a bit better (however it doesn't work when threading is present hence my try of a newer GCC). Any idea? For access to the platform feel free to request an account on the GCC Compile Farm which is open to all free software developpers, not only GCC, following instructions given here: http://gcc.gnu.org/wiki/CompileFarm Current platforms (running Linux): * i686 * x86_64, including three bi-quad core with 16 GB of RAM * armv5tel * powerpc * powerpc64 * sparc * sparc64 (sparcv9) * alpha * mipsel * mips64el * ia64 The machine I used for sparc64-linux is "gcc54". I also noticed the archive for gdb-testresults seems empty, is there another place to look for? Automatic testers via crontab are of course allowed on the compile farm. Sincerely, Laurent guerby@gcc54:~/tmp$ cat ttt.c #include int main(void) { printf("hello\n"); return 0; } guerby@gcc54:~/tmp$ gcc -g -m64 ttt.c guerby@gcc54:~/tmp$ file ./a.out ./a.out: ELF 64-bit MSB executable, SPARC V9, version 1 (SYSV), for GNU/Linux 2.4.18, dynamically linked (uses shared libs), for GNU/Linux 2.4.18, not stripped guerby@gcc54:~/tmp$ gdb ./a.out GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "sparc64-unknown-linux-gnu"... (gdb) set debug infrun 1 (gdb) r Starting program: /home/guerby/tmp/a.out infrun: wait_for_inferior (treat_exec_as_sigtrap=1) infrun: infwait_normal_state infrun: TARGET_WAITKIND_STOPPED infrun: stop_pc = 0xf7ec90000033f398 infrun: quietly stopped infrun: stop_stepping infrun: resume (step=0, signal=0) infrun: wait_for_inferior (treat_exec_as_sigtrap=1) infrun: infwait_normal_state infrun: TARGET_WAITKIND_STOPPED infrun: stop_pc = 0xf7ec90000033f398 infrun: quietly stopped infrun: stop_stepping infrun: proceed (addr=0xffffffffffffffff, signal=0, step=0) infrun: resume (step=0, signal=0) infrun: wait_for_inferior (treat_exec_as_sigtrap=0) hello infrun: infwait_normal_state infrun: TARGET_WAITKIND_EXITED Program exited normally. infrun: stop_stepping (gdb) b main Breakpoint 1 at 0x100550: file ttt.c, line 3. (gdb) r Starting program: /home/guerby/tmp/a.out infrun: wait_for_inferior (treat_exec_as_sigtrap=1) infrun: infwait_normal_state infrun: TARGET_WAITKIND_STOPPED infrun: stop_pc = 0xf7ec90000034ec88 infrun: quietly stopped infrun: stop_stepping infrun: resume (step=0, signal=0) infrun: wait_for_inferior (treat_exec_as_sigtrap=1) infrun: infwait_normal_state infrun: TARGET_WAITKIND_STOPPED infrun: stop_pc = 0xf7ec90000034ec88 infrun: quietly stopped infrun: stop_stepping infrun: proceed (addr=0xffffffffffffffff, signal=0, step=0) infrun: resume (step=0, signal=0) infrun: wait_for_inferior (treat_exec_as_sigtrap=0) infrun: infwait_normal_state infrun: TARGET_WAITKIND_STOPPED infrun: stop_pc = 0xf7ec90000033fdd0 infrun: random signal 5 Program received signal SIGTRAP, Trace/breakpoint trap. infrun: stop_stepping 0xf7ec90000033fdd0 in ?? () (gdb) bt #0 0xf7ec90000033fdd0 in ?? () #1 0xffffc9e000000008 in ?? () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) n Cannot find bounds of current function (gdb) q guerby@gcc54:~/tmp$ /usr/bin/gdb a.out GNU gdb 6.4.90-debian Copyright (C) 2006 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 "sparc-linux-gnu"... warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration of GDB. Attempting to continue with the default sparc:v9 settings. Using host libthread_db library "/lib/v9/libthread_db.so.1". (gdb) b main Breakpoint 1 at 0x100550: file ttt.c, line 3. (gdb) r Starting program: /home/guerby/tmp/a.out warning: no shared library support for this OS / ABI Breakpoint 1, main () at ttt.c:3 3 printf("hello\n"); (gdb) n hello 4 return 0; (gdb) q The program is running. Exit anyway? (y or n) y