* gdb.base/valgrind-infcall.exp: Expect leading `.' on ppc64's
	symbols. Abort if vgdb remote connection is closed.
+2012-08-03  Edjunior Machado  <emachado@linux.vnet.ibm.com>
+
+       * gdb.base/valgrind-infcall.exp: Expect leading `.' on ppc64's
+       symbols. Abort if vgdb remote connection is closed.
+
 2012-08-02  Doug Evans  <dje@google.com>
 
        * gdb.base/info-fun.exp: Fix failures on m68k, ppc64, s390x.
 
 
 clean_restart $executable
 
-gdb_test "$vgdbcmd" " in _start .*" "target remote for vgdb"
+gdb_test "$vgdbcmd" " in \\.?_start .*" "target remote for vgdb"
 
 gdb_test "monitor v.set gdb_output" "valgrind output will go to gdb.*"
 
            pass $test
            break
        }
+       -re "Remote connection closed.*\r\n$gdb_prompt $" {
+           fail "$test (remote connection closed)"
+           return -1
+       }
        -re "\r\n$gdb_prompt $" {
            pass "$test (false warning)"
        }