From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23764 invoked by alias); 21 Nov 2003 17:51:16 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 23751 invoked from network); 21 Nov 2003 17:51:15 -0000 Received: from unknown (HELO hawaii.kealia.com) (209.3.10.89) by sources.redhat.com with SMTP; 21 Nov 2003 17:51:15 -0000 Received: by hawaii.kealia.com (Postfix, from userid 2049) id E75A5C6AB; Fri, 21 Nov 2003 09:51:14 -0800 (PST) To: Mark Kettenis Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] Testcase for backtrace/1435 References: <200311172140.hAHLeT4s009208@elgar.kettenis.dyndns.org> From: David Carlton Date: Fri, 21 Nov 2003 17:51:00 -0000 In-Reply-To: <200311172140.hAHLeT4s009208@elgar.kettenis.dyndns.org> (Mark Kettenis's message of "Mon, 17 Nov 2003 22:40:29 +0100 (CET)") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Rational FORTRAN, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-11/txt/msg00439.txt.bz2 On Mon, 17 Nov 2003 22:40:29 +0100 (CET), Mark Kettenis said: > This adds a testcase for the patch I just submitted. This is > i386-specific, but I don't know how to trick GCC into putting two > functions right after oneother without using assembler. I'm getting a FAIL while running to main (though the tests themselves still execute and pass, which I don't quite understand). This is with GCC 3.2 (more or less - Red Hat 8.0), i686-pc-linux-gnu, DWARF-2. I'll include the gdb.log below. David Carlton carlton@kealia.com Test Run By carlton on Fri Nov 21 09:44:32 2003 Native configuration is i686-pc-linux-gnu === gdb tests === Schedule of variations: unix Running target unix Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target. Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target. Using ./config/unix.exp as tool-and-target-specific interface file. Running ./gdb.arch/i386-unwind.exp ... Executing on host: gcc ./gdb.arch/i386-unwind.c -g -lm -o /gdb/mirror/src/gdb/testsuite/gdb.arch/i386-unwind (timeout = 300) spawn gcc ./gdb.arch/i386-unwind.c -g -lm -o /gdb/mirror/src/gdb/testsuite/gdb.arch/i386-unwind spawn /gdb/mirror/src/gdb/testsuite/../../gdb/gdb -nw -nx GNU gdb 2003-11-21-cvs Copyright 2003 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 "i686-pc-linux-gnu". (gdb) set height 0 (gdb) set width 0 (gdb) dir Reinitialize source path to empty? (y or n) y Source directories searched: $cdir:$cwd (gdb) dir ./gdb.arch Source directories searched: /gdb/mirror/src/gdb/testsuite/./gdb.arch:$cdir:$cwd (gdb) file /gdb/mirror/src/gdb/testsuite/gdb.arch/i386-unwind Reading symbols from /gdb/mirror/src/gdb/testsuite/gdb.arch/i386-unwind...done. Using host libthread_db library "/lib/libthread_db.so.1". (gdb) delete breakpoints (gdb) info breakpoints No breakpoints or watchpoints. (gdb) break main Breakpoint 1 at 0x804832c: file gdb.arch/i386-unwind.c, line 26. (gdb) run Starting program: /gdb/mirror/src/gdb/testsuite/gdb.arch/i386-unwind Program received signal SIGTRAP, Trace/breakpoint trap. trap () at gdb.arch/i386-unwind.c:26 26 } (gdb) FAIL: gdb.arch/i386-unwind.exp: running to main in runto continue Continuing. Program received signal SIGTRAP, Trace/breakpoint trap. trap () at gdb.arch/i386-unwind.c:26 26 } (gdb) PASS: gdb.arch/i386-unwind.exp: continue past gdb1435 backtrace 10 #0 trap () at gdb.arch/i386-unwind.c:26 #1 0x08048338 in gdb1435 () at gdb.arch/i386-unwind.c:26 #2 0x08048340 in main () at gdb.arch/i386-unwind.c:26 (gdb) PASS: gdb.arch/i386-unwind.exp: backtrace past gdb1435 testcase ./gdb.arch/i386-unwind.exp completed in 1 seconds === gdb Summary === # of expected passes 2 # of unexpected failures 1 Executing on host: /gdb/mirror/src/gdb/testsuite/../../gdb/gdb -nw --command gdb_cmd (timeout = 300) spawn /gdb/mirror/src/gdb/testsuite/../../gdb/gdb -nw --command gdb_cmd GNU gdb 2003-11-21-cvs Copyright 2003 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 "i686-pc-linux-gnu". /gdb/mirror/src/gdb/testsuite/../../gdb/gdb version 2003-11-21-cvs -nx runtest completed at Fri Nov 21 09:44:33 2003