* 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.
This commit is contained in:
Vladimir Prus 2007-04-25 15:56:15 +00:00
parent b7b73cae89
commit ef783a7dfc
6 changed files with 17 additions and 5 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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
}

View File

@ -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;
}