Fix non executable stack handling when calling functions in the inferior.
[deliverable/binutils-gdb.git] / gdb / linux-nat.c
index 169188ac541354670eb76895b8044a4a8e6ffa38..ed007bde36236356c78cf55790a10c7201e5c59b 100644 (file)
@@ -3070,9 +3070,11 @@ linux_nat_filter_event (int lwpid, int status)
        }
 
       /* When using hardware single-step, we need to report every signal.
-        Otherwise, signals in pass_mask may be short-circuited.  */
+        Otherwise, signals in pass_mask may be short-circuited
+        except signals that might be caused by a breakpoint.  */
       if (!lp->step
-         && WSTOPSIG (status) && sigismember (&pass_mask, WSTOPSIG (status)))
+         && WSTOPSIG (status) && sigismember (&pass_mask, WSTOPSIG (status))
+         && !linux_wstatus_maybe_breakpoint (status))
        {
          linux_resume_one_lwp (lp, lp->step, signo);
          if (debug_linux_nat)
This page took 0.024321 seconds and 4 git commands to generate.