]> git.tdb.fi Git - gldbg.git/blobdiff - source/process.cpp
Make trace command more straightforward
[gldbg.git] / source / process.cpp
index ebc0b955e1b64b13680d621fafe16a0ee9e89aca..0fc9e98f6410e0b6657a50106a1d2459385d594e 100644 (file)
@@ -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)