| Index: gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
|
| diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
|
| index 3b08ef8c21c9e383f4ac9c768ee1f568b7582807..2fd3a8a9a56ea50608e86e3b27267c5fa6a87713 100644
|
| --- a/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
|
| +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint2.exp
|
| @@ -1,4 +1,4 @@
|
| -# Copyright (C) 2011-2012 Free Software Foundation, Inc.
|
| +# Copyright (C) 2011-2013 Free Software Foundation, Inc.
|
| #
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -45,10 +45,10 @@ gdb_test "source $pyfile" ".*Python script imported.*" \
|
| gdb_breakpoint "throw_exception_1"
|
| gdb_test "continue" "Breakpoint .*throw_exception_1.*" "run to exception 1"
|
|
|
| -gdb_test "python print len(gdb.breakpoints())" "3" "check BP count"
|
| +gdb_test "python print (len(gdb.breakpoints()))" "3" "check BP count"
|
| gdb_test "python ExceptionFinishBreakpoint(gdb.newest_frame())" "init ExceptionFinishBreakpoint" "set FinishBP after the exception"
|
| gdb_test "continue" ".*stopped at ExceptionFinishBreakpoint.*" "check FinishBreakpoint in catch()"
|
| -gdb_test "python print len(gdb.breakpoints())" "3" "check finish BP removal"
|
| +gdb_test "python print (len(gdb.breakpoints()))" "3" "check finish BP removal"
|
|
|
| gdb_test "continue" ".*Breakpoint.* throw_exception_1.*" "continue to second exception"
|
| gdb_test "python ExceptionFinishBreakpoint(gdb.newest_frame())" "init ExceptionFinishBreakpoint" "set FinishBP after the exception"
|
|
|