aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/longjmp.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-06-11 15:15:06 +0000
committerTom Tromey <tromey@redhat.com>2012-06-11 15:15:06 +0000
commite81a37f7edbec06a2c713b446d254e26894b8030 (patch)
tree6559d9d683eda90b804bd7af43e2f3f560e48c9e /gdb/testsuite/gdb.base/longjmp.c
parente4efb6653157f9b6af49c574378a0b180ebcb539 (diff)
downloadgdb-e81a37f7edbec06a2c713b446d254e26894b8030.zip
gdb-e81a37f7edbec06a2c713b446d254e26894b8030.tar.gz
gdb-e81a37f7edbec06a2c713b446d254e26894b8030.tar.bz2
* infrun.c (handle_inferior_event)
<BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume breakpoint. <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use exception logic in all cases. Update comments. (insert_longjmp_resume_breakpoint): Set the exception resume breakpoint. testsuite * gdb.base/longjmp.c (hidden_longjmp): Move expected catch location... (main): ...here.
Diffstat (limited to 'gdb/testsuite/gdb.base/longjmp.c')
-rw-r--r--gdb/testsuite/gdb.base/longjmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/longjmp.c b/gdb/testsuite/gdb.base/longjmp.c
index e9e0e56..b203a8d 100644
--- a/gdb/testsuite/gdb.base/longjmp.c
+++ b/gdb/testsuite/gdb.base/longjmp.c
@@ -33,7 +33,7 @@ call_longjmp (jmp_buf *buf)
void
hidden_longjmp (void)
{
- if (setjmp (env) == 0) /* longjmp caught */
+ if (setjmp (env) == 0)
{
call_longjmp (&env);
}
@@ -75,6 +75,8 @@ main ()
/* Pattern 3 - setjmp/longjmp inside stepped-over function. */
hidden_longjmp (); /* patt3 */
+ i = 77; /* longjmp caught */
+
i = 3; /* patt_end3. */
return 0;