use (idb mode only)

Add a directory to the source path, or show directories in the source path.

Syntax

use [ dirname … ]

Parameters

dirname

The path of the directory to add to the source path.

Description

This command adds directories to the list of source directories that the debugger uses to search for source and script files when opening an executable file.

If you do not specify dirname, the debuggee lists the directories in which the debugger searches for source code files.

If you specify dirname, the debugger searches source code files in that directory, and appends dirname to the list of source directories, or it replaces the list, depending on the value of the $dbxuse debugger variable: When $dbxuse is zero, the debugger appends. Otherwise it replaces. The default value of $dbxuse is 0.

Alternatively, you can specify the -I option when you start the debugger.

You can customize your debugger environment source code search paths by adding commands to your .idbrc file that use the use command.

Example

(idb) use
Directory search path for source files: 
. ../src /home/user/examples 
(idb) use aa
Directory search path for source files: 
. ../src /home/user/examples aa 
(idb) use bb cc
Directory search path for source files: 
. ../src /home/user/examples aa bb cc 
(idb) use bb
Directory search path for source files: 
. ../src /home/user/examples aa bb cc 
(idb) use aa bb cc
Directory search path for source files: 
. ../src /home/user/examples aa bb cc 
(idb) set $dbxuse = 1
(idb) use aa
Directory search path for source files: 
. ../src /home/user/examples aa 

See Also


Submit feedback on this help topic

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