+2005-11-25 Michael Snyder <msnyder@redhat.com>
+
+ * gdb.base/foll-fork.exp: Add PASS cases for linux.
+
2005-11-11 Stephane Carrez <stcarrez@nerim.fr>
* gdb.asm/m68hc11.inc: Setup the data section.
# Until "set follow-fork-mode" and "catch fork" are implemented on
# other targets...
#
-if ![istarget "hppa*-hp-hpux*"] then {
+if {![istarget "hppa*-hp-hpux*"] && ![istarget "*-pc-linux*"]} then {
continue
}
gdb_expect {
-re "Catchpoint.*(forked process.*),.*in _fork_sys.*$gdb_prompt $"\
{pass "explicit child follow, catch fork"}
+ -re "Catchpoint.*(forked process.*),.*in _dl_sysinfo.*$gdb_prompt $"\
+ {pass "explicit child follow, catch fork"}
-re "$gdb_prompt $" {fail "explicit child follow, catch fork"}
timeout {fail "(timeout) explicit child follow, catch fork"}
}
gdb_expect {
-re ".*in _fork_sys.*$gdb_prompt $"\
{pass "explicit parent follow, tcatch fork"}
+ -re ".*in _dl_sysinfo.*$gdb_prompt $"\
+ {pass "explicit parent follow, tcatch fork"}
-re "$gdb_prompt $" {fail "explicit parent follow, tcatch fork"}
timeout {fail "(timeout) explicit parent follow, tcatch fork"}
}