diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2007-04-25 15:56:15 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2007-04-25 15:56:15 +0000 |
commit | ef783a7dfcaf475fef1fc46bc987bfd5e8b66839 (patch) | |
tree | 16c69da9dd2c84d641401a968d334a75a7f7a6bd | |
parent | b7b73cae892a654ad19c33465b866f287b964848 (diff) | |
download | gdb-ef783a7dfcaf475fef1fc46bc987bfd5e8b66839.zip gdb-ef783a7dfcaf475fef1fc46bc987bfd5e8b66839.tar.gz gdb-ef783a7dfcaf475fef1fc46bc987bfd5e8b66839.tar.bz2 |
* gdb.base/sigaltstack.exp: Use 'srcfile' in error
message, not the undefined 'module' variable.
* gdb.base/siginfo.exp: Likewise.
* gdb.base/sigstep.exp: Likewise.
* lib/gdbserver-support.exp (gdb_target_cmd): Quote
serialport.
* lib/mi-support.exp (mi_gdb_target_cmd): Likewise.
-rw-r--r-- | gdb/testsuite/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/sigaltstack.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/siginfo.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/sigstep.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/lib/gdbserver-support.exp | 3 | ||||
-rw-r--r-- | gdb/testsuite/lib/mi-support.exp | 3 |
6 files changed, 17 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 57c7041..d918e22 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2007-04-25 Vladimir Prus <vladimir@codesourcery.com> + + * gdb.base/sigaltstack.exp: Use 'srcfile' in error + message, not the undefined 'module' variable. + * gdb.base/siginfo.exp: Likewise. + * gdb.base/sigstep.exp: Likewise. + * lib/gdbserver-support.exp (gdb_target_cmd): Quote + serialport. + * lib/mi-support.exp (mi_gdb_target_cmd): Likewise. + 2007-04-25 Corinna Vinschen <vinschen@redhat.com> * config/sim.exp (gdb_target_sim): Just return with -1 when setting diff --git a/gdb/testsuite/gdb.base/sigaltstack.exp b/gdb/testsuite/gdb.base/sigaltstack.exp index 6ce7e40..aa4f1b1 100644 --- a/gdb/testsuite/gdb.base/sigaltstack.exp +++ b/gdb/testsuite/gdb.base/sigaltstack.exp @@ -39,7 +39,7 @@ set testfile sigaltstack set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested "Couldn't compile ${module}.c" + untested "Couldn't compile ${srcfile}.c" return -1 } diff --git a/gdb/testsuite/gdb.base/siginfo.exp b/gdb/testsuite/gdb.base/siginfo.exp index 1ac7574..fe57ef0 100644 --- a/gdb/testsuite/gdb.base/siginfo.exp +++ b/gdb/testsuite/gdb.base/siginfo.exp @@ -40,7 +40,7 @@ set testfile siginfo set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested "Couldn't compile ${module}.c" + untested "Couldn't compile ${srcfile}.c" return -1 } diff --git a/gdb/testsuite/gdb.base/sigstep.exp b/gdb/testsuite/gdb.base/sigstep.exp index f5d5424..7fa3178 100644 --- a/gdb/testsuite/gdb.base/sigstep.exp +++ b/gdb/testsuite/gdb.base/sigstep.exp @@ -38,7 +38,7 @@ set testfile sigstep set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } { - untested "Couldn't compile ${module}.c" + untested "Couldn't compile ${srcfile}.c" return -1 } diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp index 3bf974d..b7d7708 100644 --- a/gdb/testsuite/lib/gdbserver-support.exp +++ b/gdb/testsuite/lib/gdbserver-support.exp @@ -45,6 +45,7 @@ proc gdb_target_cmd { targetname serialport } { global gdb_prompt + set serialport_re [string_to_regexp $serialport] for {set i 1} {$i <= 3} {incr i} { send_gdb "target $targetname $serialport\n" gdb_expect 60 { @@ -59,7 +60,7 @@ proc gdb_target_cmd { targetname serialport } { verbose "Set target to $targetname" return 0 } - -re "Remote debugging using .*$serialport.*$gdb_prompt $" { + -re "Remote debugging using .*$serialport_re.*$gdb_prompt $" { verbose "Set target to $targetname" return 0 } diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index 87e35c0..2482016 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -325,6 +325,7 @@ proc mi_gdb_reinitialize_dir { subdir } { proc mi_gdb_target_cmd { targetname serialport } { global mi_gdb_prompt + set serialport_re [string_to_regexp $serialport] for {set i 1} {$i <= 3} {incr i} { send_gdb "47-target-select $targetname $serialport\n" gdb_expect 60 { @@ -339,7 +340,7 @@ proc mi_gdb_target_cmd { targetname serialport } { verbose "Set target to $targetname"; return 0; } - -re "Remote debugging using .*$serialport.*$mi_gdb_prompt$" { + -re "Remote debugging using .*$serialport_re.*$mi_gdb_prompt$" { verbose "Set target to $targetname"; return 0; } |