File: callgraph.rst

package info (click to toggle)
gnat-gps 18-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 45,716 kB
  • sloc: ada: 362,679; python: 31,031; xml: 9,597; makefile: 1,030; ansic: 917; sh: 264; java: 17
file content (34 lines) | stat: -rw-r--r-- 1,215 bytes parent folder | download
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
**********
Call Graph
**********

Now go back to the file :file:`sdc.adb`, move the mouse over the procedure
*sdc* at line 8, select the contextual menu `Browsers->Sdc calls`: this will
open a new window titled *Call graph browser*.

Note that there is also a top level contextual menu (`Sdc calls`)
which provides a tree view of the callers/callees.

In the call graph, click on the right arrow of `Process` (one of the
first items on the top). Also click on the right arrow of `Error_Msg`.

The call graph contains a tool bar; the button on the right of this
tool bar brings up the options menu.

You may want to play with the zoom (:kbd:`=` and :kbd:`-` keys).

Click on right arrow of `Process` (`(Decl) instructions.ads:12`).

The items can also be moved: move e.g `Msg` item around.

You can also recompute the layout of all the current items by using
the `Refresh layout` button (the sixth button from the left on the local
tool bar).

Click on left arrow of `Msg`
to display who is calling `Msg`. Notice that `View` calls `Msg`.

Click on left arrow of `View`: the arrow disappears, and no
new items are created, which means that `View` isn't called by anyone,
so we're now going to remove this procedure.