The following two procedures indicate how to enable symbolic debugging for components that have been built with imake.
Edit the Project.tmpl file.
The Project.tmpl file is located in the root of the component directory. Add the following line to the end of the file:
DEBUG=$(DEBUG_ON)
Remove all the object files and executables.
$ make clean |
Rebuild the local Makefile.
$ make Makefile |
Rebuild the Makefiles in the subdirectories.
$ make Makefiles |
Rebuild the component.
$ make |
Edit the Imakefile.
Edit the Imakefile within each desired directory and add the following line to the end:
DEBUG=$(DEBUG_ON)
Remove all the object files and executables.
$ make clean |
Rebuild the local Makefile.
$ make Makefile |
Rebuild the component.
$ make |
If you prefer not to modify the Imakefile or Project.tmpl files, you can pass the debug option within the make command itself:
Remove all the object files and executables:
$ make clean |
Rebuild the component with symbolic debugging enabled:
$ make DEBUG=-gdwarf-2 |
You can also create a DEBUG environment variable.
If you use the C shell:
%setenv DEBUG -gdwarf-2
If you use the Bourne shell:
$ DEBUG=-gdwarf-2
$ export DEBUG
Call make with the -e option to import environment variables:
$ make -e |
If the component is part of the system image, rebuild and reboot the system image.