X-Git-Url: http://git.tdb.fi/?p=gldbg.git;a=blobdiff_plain;f=source%2Fgldbg.cpp;h=4bc169fcd0079abb2f99811a87db777266e4e86f;hp=dd0476d4168db408f8a990792f94cc0e436c466a;hb=efd709c6cdac15b7823e80ed64e448003aea835d;hpb=e6f542d42b566193f55bb6727834f709ac6c1762 diff --git a/source/gldbg.cpp b/source/gldbg.cpp index dd0476d..4bc169f 100644 --- a/source/gldbg.cpp +++ b/source/gldbg.cpp @@ -98,6 +98,9 @@ void GlDbg::launch() void GlDbg::send(GlPacket *pkt) { + if(process.get_state()==Process::INACTIVE) + throw runtime_error("Program is not running"); + packet_send(pkt, sock_fd); }