Next: , Up: Information


3.5.1 Showing information about the program being debugged (‘info’)

This info command (abbreviated i) is for describing the state of your program. For example, you can list the current $1, $2 parameters with info args, or list the breakpoints you have set with info breakpoints or info watchpoints. You can get a complete list of the info sub-commands with help info.

info targets [verbose]
Use info targets to get a list of all the targets explicitly mentioned in the makefiles that are read. The location of each target is given before the target name.

The result of running this on the sample makefile used in Tracing Not:

          remake<0> info targets
          test1.mk:2:
          	.PHONY
          test1.mk:3:
          	all
          test1.mk:5:
          	foo
          remake<1>

info program
Use info program to give information about the state of the stopping point.
          remake<0> info program
          Starting directory `/tmp'
          Program invocation:
          	/usr/bin/remake -f /tmp/test1.mk
          Recursion level: 0
          Line 5 of "/tmp/test1.mk"
          Program stopped at a breakpoint before rule-prequisite checking.

info break
Use info break to give a list of breakpoint currently in effect.
          remake<0> info break
          Num Type           Disp Enb target     What
            1 breakpoint     keep y   in all at /tmp/test1.mk:3
            2 breakpoint     keep y   in foo at /tmp/test1.mk:5
          remake<1>

info line
Shows the line number and file of for the place that you are currently stopped.
          $ remake -X -f test1.mk
          ...
          remake<0> info line
          Line 5 of "/tmp/test1.mk"
          remake<1>

info lines
Shows for each Makefile the line numbers that targets appear.
          $ remake -X -f test1.mk
          ...
          remake<0> info lines
          test1.mk
                 2: .PHONY
                 3: all
                 5: foo
          remake<1>

info locals
Displays a the values of the automatic variables.
info makefiles
Displays the list of Makefiles read in the order that they were read in. The last Makefile listed is the one you started with (e.g. Makefile).
info warranty
Displays GNU Warranty