The kill Command

You can kill the current process:

 

kill_command

        : kill

 

Killing a process leaves the debugger running. Any breakpoints previously set are retained. You can execute the program again later using the rerun (dbx) or the run (gdb) commands without loading it again. For example:

DBX Mode

 

(idb) show process

Current Process: localhost:19307 (/home/user/examples/x_list) paused.

(idb) kill

Process has exited

(idb) rerun

[1] stopped at [int main(void):182 0x08052e0f]

    182     List<Node> nodeList;

GDB Mode

 

(idb) info program

Using the running image of child process 19440.

Program stopped at 0x8052e0f.

It stopped at breakpoint 1.

(idb) kill

Program exited normally.

(idb) run

Starting program: /home/user/examples/x_list

Breakpoint 1, main () at src/x_list.cxx:182

182     List<Node> nodeList;