X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fprocess.cpp;h=0fc9e98f6410e0b6657a50106a1d2459385d594e;hb=c0ba680779ab15fe46442765fb7cf136aadfda65;hp=ebc0b955e1b64b13680d621fafe16a0ee9e89aca;hpb=68bbf8f302d01d2ee82dee28b9f64cff3660e234;p=gldbg.git diff --git a/source/process.cpp b/source/process.cpp index ebc0b95..0fc9e98 100644 --- a/source/process.cpp +++ b/source/process.cpp @@ -100,6 +100,8 @@ void Process::kill() if(state==INACTIVE) throw InvalidState("Program is not running"); ptrace(PTRACE_KILL, 0, 0); + // Make the debugger wait() for us + state = RUNNING; } long Process::ptrace(int req, void *addr, void *data)