* 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:
parent
b7b73cae89
commit
ef783a7dfc
@ -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>
|
2007-04-25 Corinna Vinschen <vinschen@redhat.com>
|
||||||
|
|
||||||
* config/sim.exp (gdb_target_sim): Just return with -1 when setting
|
* config/sim.exp (gdb_target_sim): Just return with -1 when setting
|
||||||
|
@ -39,7 +39,7 @@ set testfile sigaltstack
|
|||||||
set srcfile ${testfile}.c
|
set srcfile ${testfile}.c
|
||||||
set binfile ${objdir}/${subdir}/${testfile}
|
set binfile ${objdir}/${subdir}/${testfile}
|
||||||
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
|
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
|
||||||
untested "Couldn't compile ${module}.c"
|
untested "Couldn't compile ${srcfile}.c"
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ set testfile siginfo
|
|||||||
set srcfile ${testfile}.c
|
set srcfile ${testfile}.c
|
||||||
set binfile ${objdir}/${subdir}/${testfile}
|
set binfile ${objdir}/${subdir}/${testfile}
|
||||||
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
|
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
|
||||||
untested "Couldn't compile ${module}.c"
|
untested "Couldn't compile ${srcfile}.c"
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ set testfile sigstep
|
|||||||
set srcfile ${testfile}.c
|
set srcfile ${testfile}.c
|
||||||
set binfile ${objdir}/${subdir}/${testfile}
|
set binfile ${objdir}/${subdir}/${testfile}
|
||||||
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
|
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
|
||||||
untested "Couldn't compile ${module}.c"
|
untested "Couldn't compile ${srcfile}.c"
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
proc gdb_target_cmd { targetname serialport } {
|
proc gdb_target_cmd { targetname serialport } {
|
||||||
global gdb_prompt
|
global gdb_prompt
|
||||||
|
|
||||||
|
set serialport_re [string_to_regexp $serialport]
|
||||||
for {set i 1} {$i <= 3} {incr i} {
|
for {set i 1} {$i <= 3} {incr i} {
|
||||||
send_gdb "target $targetname $serialport\n"
|
send_gdb "target $targetname $serialport\n"
|
||||||
gdb_expect 60 {
|
gdb_expect 60 {
|
||||||
@ -59,7 +60,7 @@ proc gdb_target_cmd { targetname serialport } {
|
|||||||
verbose "Set target to $targetname"
|
verbose "Set target to $targetname"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
-re "Remote debugging using .*$serialport.*$gdb_prompt $" {
|
-re "Remote debugging using .*$serialport_re.*$gdb_prompt $" {
|
||||||
verbose "Set target to $targetname"
|
verbose "Set target to $targetname"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
@ -325,6 +325,7 @@ proc mi_gdb_reinitialize_dir { subdir } {
|
|||||||
proc mi_gdb_target_cmd { targetname serialport } {
|
proc mi_gdb_target_cmd { targetname serialport } {
|
||||||
global mi_gdb_prompt
|
global mi_gdb_prompt
|
||||||
|
|
||||||
|
set serialport_re [string_to_regexp $serialport]
|
||||||
for {set i 1} {$i <= 3} {incr i} {
|
for {set i 1} {$i <= 3} {incr i} {
|
||||||
send_gdb "47-target-select $targetname $serialport\n"
|
send_gdb "47-target-select $targetname $serialport\n"
|
||||||
gdb_expect 60 {
|
gdb_expect 60 {
|
||||||
@ -339,7 +340,7 @@ proc mi_gdb_target_cmd { targetname serialport } {
|
|||||||
verbose "Set target to $targetname";
|
verbose "Set target to $targetname";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
-re "Remote debugging using .*$serialport.*$mi_gdb_prompt$" {
|
-re "Remote debugging using .*$serialport_re.*$mi_gdb_prompt$" {
|
||||||
verbose "Set target to $targetname";
|
verbose "Set target to $targetname";
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user