This file is indexed.

/usr/share/gps/plug-ins/build_modes.xml is in gnat-gps-common 5.3dfsg-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<?xml version="1.0" ?>
<!--  This file provides default build modes for GPS  -->

<GPS>
 <builder-mode name="default">
  <description>Build with default switches defined in the project</description>
 </builder-mode>

 <builder-mode name="debug">
  <description>Build with debug information</description>
  <subdir>debug</subdir>
  <supported-model>builder</supported-model>
  <supported-model>gnatmake</supported-model>
  <supported-model>gprbuild</supported-model>
  <supported-model filter="--subdirs=">gprclean</supported-model>
  <extra-args>
     <arg>--subdirs=%subdir</arg>
     <arg>-cargs</arg>
     <arg>-g</arg>
     <arg>-O0</arg>
  </extra-args>
 </builder-mode>

 <builder-mode name="checks">
  <description>Build with full checking enabled</description>
  <subdir>check</subdir>
  <supported-model>builder</supported-model>
  <supported-model>gnatmake</supported-model>
  <supported-model>gprbuild</supported-model>
  <supported-model filter="--subdirs=">gprclean</supported-model>
  <substitutions>
    <substitute src="%builder" dest="gprbuild"/>
    <substitute src="%gnatmake" dest="gprbuild"/>
  </substitutions>
  <extra-args>
     <arg>--subdirs=%subdir</arg>
     <arg>-cargs:Ada</arg>
     <arg>-g</arg>
     <arg>-O0</arg>
     <arg>-gnato</arg>
     <arg>-fstack-check</arg>
     <arg>-gnatVa</arg>
     <arg>-cargs:C</arg>
     <arg>-g</arg>
     <arg>-O0</arg>
     <arg>-fstack-check</arg>
     <arg>-cargs:C++</arg>
     <arg>-g</arg>
     <arg>-O0</arg>
     <arg>-fstack-check</arg>
  </extra-args>
 </builder-mode>

 <builder-mode name="optimize">
  <description>Build for production with full optimization</description>
  <subdir>opt</subdir>
  <supported-model>builder</supported-model>
  <supported-model>gnatmake</supported-model>
  <supported-model>gprbuild</supported-model>
  <supported-model filter="--subdirs=">gprclean</supported-model>
  <substitutions>
    <substitute src="%builder" dest="gprbuild"/>
    <substitute src="%gnatmake" dest="gprbuild"/>
  </substitutions>
  <extra-args>
     <arg>--subdirs=%subdir</arg>
     <arg>-cargs:Ada</arg>
     <arg>-O2</arg>
     <arg>-gnatn</arg>
     <arg>-cargs:C</arg>
     <arg>-O2</arg>
     <arg>-cargs:C++</arg>
     <arg>-O2</arg>
  </extra-args>
 </builder-mode>

 <builder-mode name="gcov">
  <description>Build with gcov support</description>
  <subdir>gcov</subdir>
  <supported-model>builder</supported-model>
  <supported-model>gnatmake</supported-model>
  <supported-model>gprbuild</supported-model>
  <supported-model filter="--subdirs=">gprclean</supported-model>
  <extra-args>
     <arg>--subdirs=%subdir</arg>
     <arg>-cargs</arg>
     <arg>-g</arg>
     <arg>-fprofile-arcs</arg>
     <arg>-ftest-coverage</arg>
     <arg>-largs</arg>
     <arg>--coverage</arg>
  </extra-args>
 </builder-mode>

 <builder-mode name="gprof">
  <description>Build with gprof support</description>
  <subdir>gprof</subdir>
  <supported-model>builder</supported-model>
  <supported-model>gnatmake</supported-model>
  <supported-model>gprbuild</supported-model>
  <supported-model filter="--subdirs=">gprclean</supported-model>
  <extra-args>
     <arg>--subdirs=%subdir</arg>
     <arg>-cargs</arg>
     <arg>-g</arg>
     <arg>-pg</arg>
     <arg>-largs</arg>
     <arg>-pg</arg>
  </extra-args>
 </builder-mode>

 <builder-mode name="xref">
  <description>Generate cross-reference information</description>
  <subdir>.</subdir>
  <shadow>TRUE</shadow>
  <supported-model>builder</supported-model>
  <supported-model>gnatmake</supported-model>
  <supported-model>gprbuild</supported-model>
  <supported-model filter="--subdirs=">gprclean</supported-model>
  <server>Tools_Server</server>
  <substitutions>
    <substitute src="%builder" dest="gprbuild"/>
    <substitute src="%gnatmake" dest="gprbuild"/>
  </substitutions>
  <extra-args>
    <arg>-margs</arg>
    <arg>--subdirs=%subdir</arg>
    <arg>-U</arg>
    <arg>-k</arg>
    <arg>-d</arg>
    <arg>-ws</arg>
    <arg>--no-object-check</arg>
    <arg>-cargs:Ada</arg>
    <arg>-gnatcQI</arg>
    <arg>-gnatws</arg>
    <arg>-gnatyN</arg>
    <arg>-gnatVn</arg>
    <arg>-cargs:C</arg>
    <arg>-w</arg>
    <arg>-fsyntax-only</arg>
    <arg>-fdump-xref</arg>
    <arg>-cargs:C++</arg>
    <arg>-w</arg>
    <arg>-fsyntax-only</arg>
    <arg>-fpermissive</arg>
    <arg>-fdump-xref</arg>
  </extra-args>
 </builder-mode>

</GPS>