Dbx 1024 User's Guide Page 59

  • Download
  • Add to my manuals
  • Print
  • Page
    / 158
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 58
Determining the Scope of Variables
45
(the default), then C type keywords are treated as dbx keywords; if
$ctypenames is set to 0, they are not.
Case Sensitivity in Variable Names
Whether or not dbx is case sensitive when it evaluates program variable
names depends on the value of the dbx variable $casesense.
If $casesense is 2 (the default), then the language in which the variable was
defined is taken into account (for example, C and C++ are case sensitive
while Pascal and Fortran are not). If$casesense is 1, case is always checked. If
$casesense is 0, case is always ignored. Note that file (module) names are
always case sensitive since they represent UNIX filenames.
Determining the Scope of Variables
The which command allows you to determine the scope of variables. This
command is useful for programs that have multiple variables with the same
name occurring in different scopes.
The which command prints the fully qualified name of the active version of
a specified variable. For example, to determine the scope of the variable i,
enter:
(dbx) which i
.foo.foo2.i
In the example above, the variable i that is currently active is local to the
procedurefoo2 that appears in the module foo (corresponding to the file foo.c
in a C language program).
Displaying Type Declarations
Thewhatis command displays the type declaration for a specified variable or
procedure in your program.
Page view 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 157 158

Comments to this Manuals

No comments