Map one source directory to another one.
map source directory from_directory_name to_directory_name
from_directory_name |
The directory from which you want to map. |
to_directory_name |
The directory to which you want to map. |
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.
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
Copyright © 1996-2010, Intel Corporation. All rights reserved.