X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgldbg.cpp;h=9da31ea85917f76731126188690ee1727b0058dc;hb=7cc7ebcdb800bd4d88e4fccff8459003599e71d7;hp=c13d5cc2fa6bbafb1b42c87b38139cf78fd58c10;hpb=a34325fadec5b2be003bf9af1f081bfc4c83e8b6;p=gldbg.git diff --git a/source/gldbg.cpp b/source/gldbg.cpp index c13d5cc..9da31ea 100644 --- a/source/gldbg.cpp +++ b/source/gldbg.cpp @@ -134,7 +134,7 @@ void GlDbg::set_breakpoint(unsigned short func, unsigned char flag, Tool *owner) breakpoints.back().add_owner(owner); } - if(process.get_state()>=Process::RUNNING) + if(process.get_state()!=Process::INACTIVE) send_breakpoint(func, flag, 0); } } @@ -158,7 +158,7 @@ void GlDbg::clear_breakpoint(unsigned short func, unsigned char flag, Tool *owne break; } - if(process.get_state()>=Process::RUNNING) + if(process.get_state()!=Process::INACTIVE) send_breakpoint(func, 0, flag); } }