Objects Used in Type Transformation

A type transformation uses the following CLI commands.

  • TV::process, which accesses a process.

    A process represents a single UNIX process. The process can have many threads of control within it. A process always references at least one image.

  • TV::image, which accesses an image.

    An image is the object that describes a single executable file--either the executable image or a shared library. An image owns a set of types and a set of prototypes.

    You can ask a process which set of images it is currently using. Note that this set can change if the process calls dlopen() to load a new shared library, or dlclose() to remove one.

    Note:   You can determine which prototypes are associated with an image by using the "TV::image get image_id prototypes" command. This command returns a list of the prototype IDs added to the image.

    Within an image, you can look up types by name. A single named type may have many internal types associated with it because compilers often output a type definition in the debug information for each source file. This means that lookup operation returns a list of all of the types with the requested name. For example:

    d1.<> TV::image lookup 1|1 types <integer>
    1|6

    An image owns a set of types and refers to a set of prototypes.

  • TV::type, which acceses a type.

    A type object holds the information about a single type. The type belongs to an image object and cannot be used outside that image.

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0