This is the mail archive of the gdb-patches@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: [RFA] Testcase for backtrace/1435


On Mon, 17 Nov 2003 22:40:29 +0100 (CET), Mark Kettenis <kettenis@chello.nl> 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


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