directory (gdb mode only)

Add directories to the list of source directories.

Syntax

directory [directory_name1[:…]]

Parameters

directory_name

Name of the directory to be prepended to the list of source directories.

Description

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

The debugger maintains a list of source directories that it searches when opening an executable file.

To delete all directories that you have added to the list, use this command without a parameter.

To add one directory to the beginning of the list, specify directory_name.

To add multiple directories to the beginning of the list, specify directory_name separated by a colon (:) or whitespace.

When you specify a directory already in the list, the debugger moves that directory one position up in the list.

To get the full list of directories in the search list, use the show directories command.

Example

(idb) show directories 
Source directories searched: .:/home/hal/
(idb) 
(idb) directory aa 
Source directories searched: aa:.:/home/hal/
(idb) 
(idb) directory cc:dd 
Source directories searched: cc:dd:aa:.:/home/hal/
(idb) 
(idb) directory ee:ff 
Source directories searched: ee:ff:cc:dd:aa:.:/home/hal/
(idb) 
(idb) directory aa 
Source directories searched: aa:ee:ff:cc:dd:.:/home/hal/

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.