core_lo_pathmap Environment Variable |
The pathmap command maps one pathname to another for finding source files, etc. The mapping is applied to source paths, object file paths and the current working directory (if you specify -c).
The pathmap command is useful for dealing with automounted and explicit NFS mounted filesystems with different paths on differing hosts. Specify -c when you are trying to correct problems arising due to the automounter since CWD's are inaccurate on automounted filesystems as well. The pathmap command is also useful if source or build trees are moved.
pathmap /tmp_mnt / exists by default.
The pathmap command is used to find load objects for core files when the dbx environment variable core_lo_pathmap is set to on. Other than this case, the pathmap command has no effect on finding load objects (shared libraries). See Debugging Mismatched Core Files.
pathmap [ -c ] [-index] from to | Establish a new mapping from from to to. |
pathmap [ -c ] [-index] to | Map all paths to to. |
pathmap | List all existing path mappings (by index) |
pathmap -s | The same, but the output can be read by dbx. |
pathmap -d from1 from2... | Delete the given mapping(s) by path. |
pathmap -d index1 index2 ... | Delete the given mapping(s) by index. |
where:
(dbx) pathmap /export/home/work1 /net/mmm/export/home/work2
# maps /export/home/work1/abc/test.c to /net/mmm/export/home/work2/ abc/test.c
(dbx) pathmap /export/home/newproject
# maps /export/home/work1/abc/test.c to /export/home/newproject/ test.c
(dbx) pathmap
(1) -c /tmp_mnt /
(2) /export/home/work1 /net/mmm/export/home/work2
(3) /export/home/newproject