Previous Next
Other features in the Cross Referencer

The Root Symbol Field
First, we will re-create the view you started the chapter with:

  1. In the Root Symbol field, type pico_struct and hit <Return> .
  2. Choose Info > pico_struct Refers-To Components
    The Reference view is now the same as the one at the beginning of this chapter.
The Depth Field
Now, we will follow the references starting from struct
pico_struct to the next deeper level:
  1. In the Depth Field enter <2>
  2. Choose Info > pico_struct Refers-To Components.
    A refers-to call graph is displayed starting at
    pico_struct and extending to two levels.

    Click for full size, then use Back button

The Xref Filter dialog
Sometimes you may just be interested in looking at a subset of all the references to or from a particular symbol. You can use the Xref Filter dialog to do so.
Let's use the Xref Filter dialog to show only structs and typedefs referred to by
pico_struct to a depth of 2.
  1. Press the Filters... button.
    The Xref Filter dialog appears.

    Click for full size, then use Back button

  2. Under Types, press the None button and then choose typedef (td) and struct (st) .
    Now only these two symbol types are selected for the next cross reference query.
  3. Press the Refers-To button.
    The Reference view now only shows the typedefs and structs found in the query.
    Note that the filtering criteria in the Xref Filter dialog now apply to all future queries. To change the parameters of any new queries, you must change the settings in the Xref Filter dialog.
  4. Let's look more closely at one of the references in the Reference view. Highlight the node:
    H td PATMT (cl pico_atmt)
  5. Choose Context menu > Show Reference.
    A Source Editor is opened and is positioned at the reference to typedef
    PATMT .
  6. Close the Cross Referencer and the Xref Filter dialog. We will continue working with the Source Editor in the next chapter.