This file is indexed.

/usr/share/doc/gnat-gps/html/The-Data-Window.html is in gnat-gps-doc 5.0-16.

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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Copyright (C) 2002-2010 AdaCore.

This document is free; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This document is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, see http://www.gnu.org/licenses/.

A copy of the license is included in the section entitled
"GNU General Public License". -->
<!-- Created by GNU Texinfo 5.1, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Using the GNAT Programming Studio: The Data Window</title>

<meta name="description" content="Using the GNAT Programming Studio: The Data Window">
<meta name="keywords" content="Using the GNAT Programming Studio: The Data Window">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Index-table.html#Index-table" rel="index" title="Index table">
<link href="Debugging.html#Debugging" rel="up" title="Debugging">
<link href="The-Breakpoint-Editor.html#The-Breakpoint-Editor" rel="next" title="The Breakpoint Editor">
<link href="The-Call-Stack-Window.html#The-Call-Stack-Window" rel="previous" title="The Call Stack Window">
<style type="text/css">
<!--
   

a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
pre.smallexample {background-color:rgb(240,240,240);
                     font-family: courier new,courier,fixed;
                     font-size: 14px;
                     margin: 0px 40px 0px 40px;
                     border-width: 1px 2px 2px 1px;
                     border-top-style: dotted;
                     border-left-style: dotted;
                     border-right-style: solid;
                     border-bottom-style: solid;
                     border-color: black;}
   code             {color:black;
                     font-family: courier new,courier,fixed;
                     font-size: 14px;}
   body             {font-family: arial,helvetica,sans-serif;
                     font-size: 16px;
                     max-width: 800px;
                     text-align: justify}
   samp             {font-family: courier new,courier,fixed;
                     font-size: 14px}
                    

-->
</style>


</head>

<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="The-Data-Window"></a>
<div class="header">
<p>
Next: <a href="The-Breakpoint-Editor.html#The-Breakpoint-Editor" accesskey="n" rel="next">The Breakpoint Editor</a>, Previous: <a href="The-Call-Stack-Window.html#The-Call-Stack-Window" accesskey="p" rel="previous">The Call Stack Window</a>, Up: <a href="Debugging.html#Debugging" accesskey="u" rel="up">Debugging</a> &nbsp; [<a href="Index-table.html#Index-table" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="The-Data-Window-1"></a>
<h3 class="section">11.3 The Data Window</h3>
<a name="index-data-1"></a>
<a name="index-data-window"></a>

<a name="Description"></a>
<h4 class="subsection">11.3.1 Description</h4>


<p>The Data Window is the area in which various information about the debugged
process can be displayed. This includes the value of selected variables, the
current contents of the registeres, the local variables, &hellip;
</p>
<a name="index-Data-Window"></a>
<p>This window is not open by default when you start the debugger. It will be
created automatically when needed (e.g. when using the Debug constextual menu
to display a variable). You can also force its display through the menu
<code>Debug-&gt;Data-&gt;Data Window</code>.
</p>
<p>However, if you save the desktop through the menu
<code>File-&gt;Save More-&gt;Desktop</code> while the data window is open, it will be
automatically reopen the next time the desktop is loaded, for instance when
restarting GPS.
</p>
<p>The contents of the data window is preserved by default whenever you close it.
Thus, if you reopen the data window either during the same debugger session,
or automatically when you start a debugger on the same executable, it will
display the same items again. This behavior is controlled by the
<code>Preserve State on Exit</code> preference.
</p>
<a name="index-menu-12"></a>
<a name="index-contextual-menu-2"></a>
<p>The data window contains all the graphic boxes that can be accessed
   using the <i>Data-&gt;Display</i> menu items, or the data window
   <i>Display Expression...</i> contextual menu, or the source window
   <i>Display</i> contextual menu items, or finally the
   <i>graph</i> command in the debugger console.
</p>
<p>For each of these commands, a box is displayed in the data window
   with the following information:
</p>

<a name="index-screen-shot-36"></a>
<img src="canvas.jpg" alt="canvas">

<ul>
<li> A title bar containing:
<a name="index-title-bar-1"></a>
     <ul>
<li> The number of this expression: this is a positive number starting
       from 1 and incremented for each new box displayed. It represents the
       internal identifier of the box.

</li><li> The name of the expression: this is the expression or variable
       specified when creating the box.

</li><li> An icon representing either a flash light, or a lock.
<a name="index-icon"></a>
       This is a click-able icon that will change the state of the box from
       automatically updated (the flash light icon) to frozen (the lock
       icon).
       When frozen, the value is grayed, and will not change until you change
       the state. When updated, the value of the box will be recomputed each
       time an execution command is sent to the debugger (e.g step, next).

</li><li> An icon representing an &rsquo;X&rsquo;.
<a name="index-icon-1"></a>
       You can click on this icon to close/delete any box.
     </li></ul>

</li><li> A main area.
     The main area will display the data value hierarchically
     in a language-sensitive manner. The canvas knows about data structures
     of various languages (e.g <code>C</code>, <code>Ada</code>, <code>C++</code>) and will
     organize them accordingly.
     For example, each field of a record/struct/class, or each item of an
     array will be displayed separately. For each subcomponent, a thin box
     is displayed to distinguish it from the other components.
   </li></ul>

<a name="index-contextual-menu-3"></a>
<p>A contextual menu, that takes into account the current component selected
   by the mouse, gives access to the following capabilities:
   </p><dl compact="compact">
<dt><b>Close <i>component</i></b></dt>
<dd><p>Closes the selected item.
</p>
</dd>
<dt><b>Hide all <i>component</i></b></dt>
<dd><a name="index-hide"></a>
<p>Hides all subcomponents of the selected item. To select a particular field
or item in a record/array, move your mouse over the name of this
component, not over the box containing the values for this item.
</p>
</dd>
<dt><b>Show all <i>component</i></b></dt>
<dd><a name="index-show"></a>
<p>Shows all subcomponents of the selected item.
</p>
</dd>
<dt><b>Clone <i>component</i></b></dt>
<dd><a name="index-clone"></a>
<p>Clones the selected component into a new, independent item.
</p>
</dd>
<dt><b>View memory at address of <i>component</i></b></dt>
<dd><a name="index-memory-view-1"></a>
<p>Brings up the memory view dialog and explore memory at the address of the
component.
</p>
</dd>
<dt><b>Set value of <i>component</i></b></dt>
<dd><p>Sets the value of a selected component. This will open an entry box
where you can enter the new value of a variable/component. Note that
GDB does not perform any type or range checking on the value entered.
</p>
</dd>
<dt><b>Update Value</b></dt>
<dd><a name="index-update-value"></a>
<p>Refreshes the value displayed in the selected item.
</p>
</dd>
<dt><b>Show Value</b></dt>
<dd><a name="index-show-value"></a>
<p>Shows only the value of the item.
</p>
</dd>
<dt><b>Show Type</b></dt>
<dd><a name="index-show-type"></a>
<p>Shows only the type of each field for the item.
</p>
</dd>
<dt><b>Show Value+Type</b></dt>
<dd><p>Shows both the value and the type of the item.
</p>

</dd>
<dt><b>Auto refresh</b></dt>
<dd><a name="index-auto-refresh"></a>
<p>Enables or disables the automatic refreshing of the item upon program execution
(e.g step, next).
</p>
</dd>
</dl>

<a name="index-contextual-menu-4"></a>
<p>A contextual menu can be accessed in the canvas itself (point the mouse to
   an empty area in the canvas, and click on the right mouse button) with the
   following entries:
   </p><dl compact="compact">
<dt><b>Display Expression...</b></dt>
<dd><a name="index-display-expression-1"></a>
<p>Open a small dialog letting you specify an arbitrary expression
      in the Data Window. This expression can be a variable name, or a
      more complex expression, following the syntax of the current language and
      underlying debugger.
      See the documentation of e.g gdb for more details on the syntax.
      The check button <i>Expression is a subprogram call</i> should be enabled
      if the expression is actually not an expression but rather a debugger
      command (e.g <code>p/x var</code>) or a procedure call in the program being
      debugged (e.g <code>call my_proc</code>).
</p>
</dd>
<dt><b>Align On Grid</b></dt>
<dd><a name="index-align"></a>
<p>Enables or disables alignment of items on the grid.
</p>
</dd>
<dt><b>Detect Aliases</b></dt>
<dd><a name="index-aliases"></a>
<p>Enables or disables the automatic detection of shared data structures.
Each time you display an item or dereference a pointer, all
the items already displayed on the canvas are considered and their addresses
are compared with the address of the new item to display. If they match,
(for example if you tried to dereference a pointer to an object already
displayed) instead of creating a new item a link will be displayed.
</p>
</dd>
<dt><b>Zoom in</b></dt>
<dd><a name="index-zoom-in"></a>
<p>Redisplays the items in the data window with a bigger font
</p>
</dd>
<dt><b>Zoom out</b></dt>
<dd><a name="index-zoom-out"></a>
<p>Displays the items in the data window with smaller fonts and pixmaps. This
can be used when you have several items in the window and you can&rsquo;t see all
of them at the same time (for instance if you are displaying a tree and
want to clearly see its structure).
</p>
</dd>
<dt><b>Zoom</b></dt>
<dd><a name="index-zoom"></a>
<p>Allows you to choose the zoom level directly from a menu.
</p>
</dd>
<dt><b>Clear</b></dt>
<dd><a name="index-clear-1"></a>
<p>When this item is selected, all the boxes currently displayed are removed.
</p>
</dd>
</dl>

<a name="Manipulating-items"></a>
<h4 class="subsection">11.3.2 Manipulating items</h4>

<a name="Moving-items"></a>
<h4 class="subsubsection">11.3.2.1 Moving items</h4>
<p>All the items on the canvas have some common behavior and can be fully
manipulated with the mouse.
They can be moved freely anywhere on the canvas, simply by clicking on
them and then dragging the mouse. Note that if you are trying to move
an item outside of the visible area of the data window, the latter will
be scrolled so as to make the new position visible.
</p>
<p>Automatic scrolling is also provided if you move the mouse while dragging
an item near the borders of the data window. As long as the mouse
remains close to the border and the button is pressed on the item,
the data window is scrolled and the item is moved. This provides an
easy way to move an item a long distance from its initial position.
</p>
<a name="Colors"></a>
<h4 class="subsubsection">11.3.2.2 Colors</h4>
<p>Most of the items are displayed using several colors, each
conveying a special meaning. Here is the meaning assigned to all colors
(note that the exact color can be changed through the preferences
dialog; these are the default colors):
</p>

<a name="index-screen-shot-37"></a>
<img src="colors.jpg" alt="colors">

<dl compact="compact">
<dt><b>black</b></dt>
<dd><p>This is the default color used to print the value of variables or
expressions.
</p>
</dd>
<dt><b>blue</b></dt>
<dd><a name="index-C-4"></a>
<a name="index-Ada-5"></a>
<p>This color is used for C pointers (or Ada access values), i.e. all the variables
and fields that are memory addresses that denote some other value in
memory.
</p>
<p>You can easily dereference these (that is to say see the value pointed to)
by double-clicking on the blue text itself.
</p>
</dd>
<dt><b>red</b></dt>
<dd><p>This color is used for variables and fields whose value has changed since
the data window was last displayed. For instance, if you display an array
in the data window and then select the <i>Next</i> button in the tool bar, then
the elements of the array whose value has just changed will appear in red.
</p>
<a name="index-menu-13"></a>
<p>As another example, if you choose to display the value of local variables in
the data window (<i>Display-&gt;Display Local Variables</i>), then only the
variables whose value has changed are highlighted, the others are left in
black.
</p>
</dd>
</dl>

<a name="Icons"></a>
<h4 class="subsubsection">11.3.2.3 Icons</h4>
<a name="index-icon-2"></a>
<p>Several different icons can be used in the display of items. They also
convey special meanings.
</p>
<dl compact="compact">
<dt><b>trash bin icon</b></dt>
<dd><p>This icon indicates that the debugger could not get the value of the
variable or expression. There might be several reasons, for instance the
variable is currently not in scope (and thus does not exist), or it might
have been optimized away by the compiler. In all cases, the display will be
updated as soon as the variable becomes visible again.
</p>
</dd>
<dt><b>package icon</b></dt>
<dd><p>This icon indicates that part of a complex structure is currently hidden.
Manipulating huge items in the data window (for instance if the variable
is an array of hundreds of complex elements) might not be very helpful. As a
result, you can shrink part of the value to save some screen space and make it
easier to visualize the interesting parts of these variables.
</p>
<p>Double-clicking on this icon will expand the hidden part, and clicking on
any sub-rectangle in the display of the variable will hide that part and
replace it with that icon.
</p>
<p>See also the description of the contextual menu to automatically show or hide
all the contents of an item. Note also that one alternative to hiding
subcomponents is to clone them in a separate item (see the contextual menu
again).
</p>
</dd>
</dl>

<hr>
<div class="header">
<p>
Next: <a href="The-Breakpoint-Editor.html#The-Breakpoint-Editor" accesskey="n" rel="next">The Breakpoint Editor</a>, Previous: <a href="The-Call-Stack-Window.html#The-Call-Stack-Window" accesskey="p" rel="previous">The Call Stack Window</a>, Up: <a href="Debugging.html#Debugging" accesskey="u" rel="up">Debugging</a> &nbsp; [<a href="Index-table.html#Index-table" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>