map source directory (idb mode only)

Map one source directory to another one.

Syntax

map source directory from_directory_name to_directory_name  

Parameters

from_directory_name

The directory from which you want to map.

to_directory_name

The directory to which you want to map.

Description

This command tells the debugger that the source files in the directory from_directory_name can be found in the directory to_directory_name.

The directory used in the source specification in the compile command is the base for the from_directory_name. The compiler combines the file path in the compile command and the user's current directory at the time of the compilation and attempts to simplify the file path so that it is a relative path from that current working directory.

Example

Suppose that when you compiled the debuggee, the source files were in /src/foo/, and that you want the debugger to use the source files in /src/bar/. You would use the following command:

(idb) map source directory /src/foo /src/bar

See Also


Submit feedback on this help topic

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