Show or change the current process.
process [ ID | filename ]
ID |
ID of the process to which you want to switch. |
filename |
Name of the file to which you want to switch. |
This command shows the current process or it changes the current process if you specify ID or filename.
The process you switch away from remains loaded, but stalled, until the debugger exits, or that process is unloaded, or until you switch to it to continue it.
The following example creates two processes and switches from one to the other: (idb) process There is no current process. You may start one by using the load' or attach' commands. (idb) load x_list Reading symbolic information from /home/user/examples/x.x_processes/x_list...done (idb) process >localhost:20492 (/home/user/examples/x.x_processes/x_list) loaded. (idb) set $old_process = $curprocess (idb) printf "$old_process=%d", $old_process $old_process=20492 (idb) load x_segv Reading symbolic information from /home/user/examples/x.x_processes/x_segv...done (idb) process localhost:20492 (/home/user/examples/x.x_processes/x_list) loaded. >localhost:20492 (/home/user/examples/x.x_processes/x_segv) loaded. (idb) process 20492 (idb) process >localhost:20492 (/home/user/examples/x.x_processes/x_list) loaded. localhost:20492 (/home/user/examples/x.x_processes/x_segv) loaded.
Copyright © 2001-2011, Intel Corporation. All rights reserved.