diff options
Diffstat (limited to 'gdb/testsuite/gdb.python/py-finish-breakpoint2.cc')
-rw-r--r-- | gdb/testsuite/gdb.python/py-finish-breakpoint2.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint2.cc b/gdb/testsuite/gdb.python/py-finish-breakpoint2.cc index 8423423..7e53d53 100644 --- a/gdb/testsuite/gdb.python/py-finish-breakpoint2.cc +++ b/gdb/testsuite/gdb.python/py-finish-breakpoint2.cc @@ -17,9 +17,13 @@ #include <iostream> +int i; + void throw_exception_1 (int e) { + i += 1; /* Finish breakpoint is set here. */ + i += 1; /* Break before exception. */ throw new int (e); } @@ -32,7 +36,6 @@ throw_exception (int e) int main (void) { - int i; try { throw_exception_1 (10); |