This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Regression


Extended this a bit more:

On Tuesday 10 February 2009 19:05:37, Pedro Alves wrote:
> The part that's breaking the BSDs is the fact that we now
> remove breakpoints from the inferior.

On Tuesday 10 February 2009 18:39:04, Mark Kettenis wrote:
> Indeed.  OpenBSD/i386 (as well as NetBSD, FreeBSD and probably Darwin)
> clears the trace bit before running the signal handler.

We don't see the problem on linux, since there's a stop and
resume *right at the begining* of the signal handler, due to the
single-step entering the signal handler.  GDB happens
to re-install breakpoints in the inferior in that resume.  This
happens *before* the inferior's flow passing by the instruction
where there's a breakpoint at ("break handle_USR1" is installed
after the prologue).

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]