Use new gdb.exp feature to check for nodebug in the executable for testcases under gdb.gdb

This commit is contained in:
Manoj Iyer 2004-09-01 19:55:00 +00:00
parent 4fbbbd0782
commit 3bdcad15ba
5 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2004-09-01 Manoj Iyer <manjo@austin.ibm.com>
* gdb.gdb/complaints.exp (setup_test): use new gdb.exp functionality
to check for nodebug in executable.
* gdb.gdb/observer.exp (setup_test): Likewise.
* gdb.gdb/selftest.exp (test_with_self): Likewise.
* gdb.gdb/xfullpath.exp (setup_test): Likewise.
2004-09-01 Andrew Cagney <cagney@gnu.org>
* gdb.threads/staticthreads.c, gdb.threads/staticthreads.exp: New

View File

@ -55,6 +55,11 @@ proc setup_test { executable } {
if { [lindex $result 0] != "" } then {
return -1
} else {
if { [lsearch -exact [lrange $result 1 end] "nodebug"] >= 0 } then {
untested "No debug information, skipping testcase."
return -1
}
}
# Set a breakpoint at main

View File

@ -53,6 +53,11 @@ proc setup_test { executable } {
if { [lindex $result 0] != "" } then {
return -1
} else {
if { [lsearch -exact [lrange $result 1 end] "nodebug"] >= 0 } then {
untested "No debug information, skipping testcase."
return -1
}
}
# Set a breakpoint at main

View File

@ -247,6 +247,11 @@ proc test_with_self { executable } {
if { [lindex $result 0] != "" } then {
return -1
} else {
if { [lsearch -exact [lrange $result 1 end] "nodebug"] >= 0 } then {
untested "No debug information, skipping testcase."
return -1
}
}
# disassemble yourself

View File

@ -54,6 +54,11 @@ proc setup_test { executable } {
if { [lindex $result 0] != "" } then {
return -1
} else {
if { [lsearch -exact [lrange $result 1 end] "nodebug"] >= 0 } then {
untested "No debug information, skipping testcase."
return -1
}
}
# Set a breakpoint at main