diff options
author | Jason Molenda <jmolenda@apple.com> | 2000-01-11 03:07:37 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 2000-01-11 03:07:37 +0000 |
commit | 0d06e24ba79bdc3617c5e56a2c32b3a7f28a4bd5 (patch) | |
tree | 9533ed688a9ea7eca9bcad984dfda07fecc420bb /gdb/testsuite | |
parent | 3b7c8b741463f04bc932f698f9a68c64ff797992 (diff) | |
download | gdb-0d06e24ba79bdc3617c5e56a2c32b3a7f28a4bd5.zip gdb-0d06e24ba79bdc3617c5e56a2c32b3a7f28a4bd5.tar.gz gdb-0d06e24ba79bdc3617c5e56a2c32b3a7f28a4bd5.tar.bz2 |
import gdb-2000-01-10 snapshot
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 21 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/default.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/display.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/help.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/selftest.exp | 40 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/so-impl-ld.exp | 16 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/so-indr-cl.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/pthreads.exp | 2 |
8 files changed, 67 insertions, 23 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3e62201..5d44af6 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,24 @@ +2000-01-10 Elena Zannoni <ezannoni@kwikemart.cygnus.com> + + * gdb.base/so-indr-cl.exp: Don't execute the test if not on HPUX. + Don't use xfail's because that affects only the following test. + + * gdb.base/so-impl-ld.exp: Don't execute the tests if not on hpux, + solaris or linux. + + * gdb.base/selftest.exp: Update to reflect changes to main.c. + +2000-01-07 Michael Snyder <msnyder@cleaver.cygnus.com> + + * gdb.base/display.exp: Some yacc parsers like to say + "A syntax error" rather than "A parse error". Accept both. + +2000-01-06 Fernando Nasser <fnasser@totem.to.cygnus.com> + + * gdb.base/default.exp: Remove OS dependent string from "target + remote" test. + * gdb.base/help.exp: Same for "help target remote" test. + 2000-01-04 Elena Zannoni <ezannoni@kwikemart.cygnus.com> From Jim Kingdon <kingdon@redhat.com>: diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp index 9395ed9..6d11eff 100644 --- a/gdb/testsuite/gdb.base/default.exp +++ b/gdb/testsuite/gdb.base/default.exp @@ -727,7 +727,7 @@ gdb_expect { if ![istarget "*-*-udi*"] then { send_gdb "target remote\n" gdb_expect { - -re "To open a remote debug connection, you need to specify what.*serial.*device is attached to the remote system .e.g. /dev/ttya.*$gdb_prompt $"\ + -re "To open a remote debug connection, you need to specify what.*serial.*device is attached to the remote system .e.g. .*$gdb_prompt $"\ { pass "target remote" } -re ".*A program is being debugged already. Kill it. .y or n.*$" { send_gdb "n\n" diff --git a/gdb/testsuite/gdb.base/display.exp b/gdb/testsuite/gdb.base/display.exp index b502dc6..b9e4218 100644 --- a/gdb/testsuite/gdb.base/display.exp +++ b/gdb/testsuite/gdb.base/display.exp @@ -191,7 +191,7 @@ gdb_test "p/a &sum" ".*= $hex.*<sum>.*" # this test will (incorrectly) fail. So use a small number. gdb_test "p/a main+4" ".*= $hex.*<.*>.*" gdb_test "p/a \$pc" ".*= $hex.*<do_vars+.*>.*" -gdb_test "p/a &&j" ".*A parse error.*" +gdb_test "p/a &&j" ".*A .* error in expression.*" # Done! # diff --git a/gdb/testsuite/gdb.base/help.exp b/gdb/testsuite/gdb.base/help.exp index dfd65a2..9c98c72 100644 --- a/gdb/testsuite/gdb.base/help.exp +++ b/gdb/testsuite/gdb.base/help.exp @@ -504,7 +504,7 @@ gdb_test "help target core" ".*Use a core file as a target.*Specify the filename # test help target exec gdb_test "help target exec" "Use an executable file as a target..*\[\r\n\]+Specify the filename of the executable file." "help target exec" # test help target remote -gdb_test "help target remote" "Use a remote computer via a serial line, using a gdb-specific protocol..*\[\r\n\]+Specify the serial device it is connected to .e.g. /dev/ttya..*" "help target remote" +gdb_test "help target remote" "Use a remote computer via a serial line, using a gdb-specific protocol..*\[\r\n\]+Specify the serial device it is connected to .e.g. .*" "help target remote" # test help target # the child process target may be "target child" or "target procfs" gdb_test "help target" "Connect to a target machine or process..*\[\r\n\]+The first argument is the type or protocol of the target machine..*\[\r\n\]+Remaining arguments are interpreted by the target protocol. For more.*\[\r\n\]+information on the arguments for a particular protocol, type.*\[\r\n\]+`help target ' followed by the protocol name..*\[\r\n\]+List of target subcommands:.*\[\r\n\]+target exec -- Use an executable file as a target.*\[\r\n\]+Type \"help target\" followed by target subcommand name for full documentation..*\[\r\n\]+Command name abbreviations are allowed if unambiguous." "help target" diff --git a/gdb/testsuite/gdb.base/selftest.exp b/gdb/testsuite/gdb.base/selftest.exp index 72a086e..dddb7a4 100644 --- a/gdb/testsuite/gdb.base/selftest.exp +++ b/gdb/testsuite/gdb.base/selftest.exp @@ -51,9 +51,29 @@ proc do_steps_and_nexts {} { gdb_reinitialize_dir $srcdir/.. - for {set count 0} {$count < 20} {incr count} { + for {set count 0} {$count < 22} {incr count} { send_gdb "list\n" gdb_expect { + -re ".*context = data.*$gdb_prompt $" { + set description "step over context initialization" + set command "step" + } + -re ".*argc = context->argc.*$gdb_prompt $" { + set description "step over argc initialization" + set command "step" + } + -re ".*argv = context->argv.*$gdb_prompt $" { + set description "step over argv initialization" + set command "step" + } + -re ".*quiet = 0.*$gdb_prompt $" { + set description "step over quiet initialization" + set command "step" + } + -re ".*batch = 0.*$gdb_prompt $" { + set description "step over batch initialization" + set command "step" + } -re ".*symarg = NULL.*$gdb_prompt $" { set description "step over symarg initialization" set command "step" @@ -74,10 +94,6 @@ proc do_steps_and_nexts {} { set description "step over ttyarg initialization" set command "step" } - -re ".*interparg = NULL.*$gdb_prompt $" { - set description "step over interparg initialization" - set command "step" - } -re ".*time_at_startup = get_run_time.*$gdb_prompt $" { set description "next over get_run_time and everything it calls" set command "next" @@ -106,10 +122,6 @@ proc do_steps_and_nexts {} { set description "next over conditional stack alignment alloca" set command "next" } - -re ".*SET_TOP_LEVEL.*$gdb_prompt $" { - set description "next over SET_TOP_LEVEL call" - set command "next" - } -re ".*cmdsize = 1.*$gdb_prompt $" { set description "step over cmdsize initialization" set command "next" @@ -199,9 +211,9 @@ proc test_with_self { executable } { "Disassemble main" # Set a breakpoint at main - gdb_test "break main" \ + gdb_test "break captured_main" \ "Breakpoint.*at.* file.*, line.*" \ - "breakpoint in main" + "breakpoint in captured_main" # We'll need this when we send a ^C to GDB. Need to do it before we # run the program and gdb starts saving and restoring tty states. @@ -222,13 +234,13 @@ proc test_with_self { executable } { # so we bump it back up for the duration of this command. set timeout 600 - set description "run until breakpoint at main" + set description "run until breakpoint at captured_main" send_gdb "run -nw\n" gdb_expect { - -re "Starting program.*Breakpoint \[0-9\]+,.*main .argc.*argv.* at .*main.c:.*$gdb_prompt $" { + -re "Starting program.*Breakpoint \[0-9\]+,.*captured_main .data.* at .*main.c:.*$gdb_prompt $" { pass "$description" } - -re "Starting program.*Breakpoint \[0-9\]+,.*main .argc.*argv.*$gdb_prompt $" { + -re "Starting program.*Breakpoint \[0-9\]+,.*captured_main .data.*$gdb_prompt $" { xfail "$description (line numbers scrambled?)" } -re "vfork: No more processes.*$gdb_prompt $" { diff --git a/gdb/testsuite/gdb.base/so-impl-ld.exp b/gdb/testsuite/gdb.base/so-impl-ld.exp index beb2a6a..e55cff9 100644 --- a/gdb/testsuite/gdb.base/so-impl-ld.exp +++ b/gdb/testsuite/gdb.base/so-impl-ld.exp @@ -32,9 +32,13 @@ if ![isnative] then { # This test is presently only valid on HP-UX, since it requires # that we use HP-UX-specific compiler & linker options to build # the testcase. -# -setup_xfail "*-*-*" -clear_xfail "hppa*-*-*hpux*" +# Actually this test works on solaris, and linux too. + +if {! ([istarget "hppa*-*-*hpux*"] + || [istarget "sparc-sun-solaris*"] + || [istarget " *-*-linux-gnu"]) } { + return +} set libfile "solib" set testfile "so-impl-ld" @@ -160,3 +164,9 @@ gdb_expect { gdb_exit return 0 + + + + + + diff --git a/gdb/testsuite/gdb.base/so-indr-cl.exp b/gdb/testsuite/gdb.base/so-indr-cl.exp index 6847289..d67f160 100644 --- a/gdb/testsuite/gdb.base/so-indr-cl.exp +++ b/gdb/testsuite/gdb.base/so-indr-cl.exp @@ -33,8 +33,9 @@ if ![isnative] then { # that we use HP-UX-specific compiler & linker options to build # the testcase. # -setup_xfail "*-*-*" -clear_xfail "hppa*-*-*hpux*" +if {! [istarget "hppa*-*-*hpux*"] } { + return +} set libfile "solib" set testfile "so-indr-cl" diff --git a/gdb/testsuite/gdb.threads/pthreads.exp b/gdb/testsuite/gdb.threads/pthreads.exp index 08e4af3..15a5df8 100644 --- a/gdb/testsuite/gdb.threads/pthreads.exp +++ b/gdb/testsuite/gdb.threads/pthreads.exp @@ -46,7 +46,7 @@ if [istarget "*-*-linux"] then { set target_cflags "" } set why_msg "unrecognized error" -foreach lib {-lpthreads -lpthread} { +foreach lib {-lpthreads -lpthread -lthread} { set options "debug" lappend options "incdir=${objdir}/${subdir}" lappend options "libs=$lib" |