process (idb mode only)

Show or change the current process.

Syntax

process [ ID | filename ]

Parameters

ID

ID of the process to which you want to switch.

filename

Name of the file to which you want to switch.

Description

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.

Example

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. 

See Also


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.