* gdb.base/gcore-buffer-overflow.exp: Check whether gdb supports
gcore, before continuing with the test.
This commit is contained in:
parent
cf557b5176
commit
58d69f2966
2 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-09-09 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* gdb.base/gcore-buffer-overflow.exp: Check whether gdb supports
|
||||
gcore, before continuing with the test.
|
||||
|
||||
2007-09-06 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* gdb.mi/mi2-watch.exp: Set can-use-hw-watchpoints to 0 if required.
|
||||
|
|
|
@ -45,6 +45,25 @@ gdb_start
|
|||
gdb_reinitialize_dir $srcdir/$subdir
|
||||
gdb_load ${binfile}
|
||||
|
||||
# Does this gdb support gcore?
|
||||
send_gdb "help gcore\n"
|
||||
gdb_expect {
|
||||
-re "Undefined command: .gcore.*$gdb_prompt $" {
|
||||
# gcore command not supported -- nothing to test here.
|
||||
unsupported "gdb does not support gcore on this target"
|
||||
return -1;
|
||||
}
|
||||
-re "Save a core file .*$gdb_prompt $" {
|
||||
pass "help gcore"
|
||||
}
|
||||
-re ".*$gdb_prompt $" {
|
||||
fail "help gcore"
|
||||
}
|
||||
timeout {
|
||||
fail "help gcore (timeout)"
|
||||
}
|
||||
}
|
||||
|
||||
gdb_test "set args ${pattern}" \
|
||||
"" \
|
||||
"Set buffer exceeding arguments"
|
||||
|
|
Loading…
Reference in a new issue