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 run (gdb) or the rerun (dbx) commands without loading it again. For example:

GDB Mode

(idb) info program

Using the running image of child process 17629.

Program stopped at 0x8051603.

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;

DBX Mode

(idb) show process

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

(idb) kill

Process has exited

(idb) rerun

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

    182     List<Node> nodeList;