-qfullpath
In IBM® XL C/C++ for AIX® 16.1.0 or earlier releases, the -q[no]fullpath option records the absolute or relative path names of source and header files in object files compiled with debugging information so that debugging tools can correctly locate the source files. When -qfullpath is in effect, the absolute path names of source files are preserved. When -qnofullpath is in effect, the relative path names of source files are preserved.
In IBM Open XL C/C++ for AIX 17.1.2, only the DWARF debugging information is supported. The default compiler behavior is as if -qfullpath were in effect, which means the compiler embeds the absolute paths for source files in the debug information. However, if the source files are not located in the absolute path location, the debugger might resort to the relative path location.
In addition, the -fdebug-prefix-map option is a related option to -qfullpath, which remaps file source paths in the debug information.
Related information
- The "Clang command line argument reference" section in the Clang documentation