bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug with breakpoints at same PC, diff condition


From: Benoit Hudson
Subject: bug with breakpoints at same PC, diff condition
Date: Fri, 19 Jan 2001 16:02:27 -0800

I am faced with a somewhat consistent problem with putting two breakpoints
at the same place and different stop conditions.  Sometimes gdb crashes,
sometimes it's exceedingly slow (sometimes it seems like an infinite loop,
other times it definitely progresses), sometimes it claims the program
crashed (in _init for instance).  I believe I've seen it succeed, although
maybe that's just my recollection from 4.18.

If instead I conjoin the two conditions on one breakpoint, things work
fine (so 
        b foo if arg==0
        b foo if arg==1
fails, but
        b foo if arg==0 || arg==1
succeeds).

I'm using gdb 5.0 ; my programs are mixed C and C++, or just C++ ; I
compile using gcc-2.95.2 with -O2 -g -fPIC ; I see the problem on both
Linux 2.2.x and Solaris 2.6

        -- BenoƮt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]