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