Re: Setting breakpoint misbehaving with all threads running in Non-Stop on Linux
Pedro Alves <pedro <at> codesourcery.com>
2009-05-02 17:14:26 GMT
On Friday 01 May 2009 20:31:21, Marc Khouzam wrote:
> I'm using HEAD (from yesterday) with Non-Stop locally on Linux.
> I notice that when all my threads are running, setting a breakpoint
> is misbehaving.
>
> First, should I be able to set a breakpoint when all threads
> are running (on Linux)?
I've worked with non-stop mode in a few targets other than linux
already, and so far, only linux has this issue, and it
is *really* a nuisance. I've been thinking we should make it
possible on linux to insert breakpoints when threads are running
as well. The user experience is just bad otherwise.
> Either way though, setting a bp reports an error -with-
> a breakpoint id, and then 'info break' shows the breakpoint
> as being set. However, the breakpoint does not actually hit.
>
> See below for the session.
>
> (gdb)
> info b
> &"info b\n"
> ~"Num Type Disp Enb Address What\n"
> ~"1 breakpoint keep y 0x080485dc in main at
> MultiThread.cc:24\n"
> ~"2 breakpoint keep y 0x0804857a in thread_exec(void*) at
> MultiThread.cc:10\n"
(Continue reading)