HP gnu source-level debugger 5992-4701 Manuale Utente Pagina 97

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 369
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 96
Convenience variables are prefixed with '$'. Any name preceded by '$' can be used for
a convenience variable, unless it is one of the predefined machine-specific register
names (see “Registers” (page 98)). (Value history references, in contrast, are numbers
preceded by '$'. See “Value history” (page 95).)
You can save a value in a convenience variable with an assignment expression, just as
you would set a variable in your program. For example:
set $foo = *object_ptr
would save in $foo the value contained in the object pointed to by object_ptr.
Using a convenience variable for the first time creates it, but its value is void until you
assign a new value. You can alter the value with another assignment at any time.
Convenience variables have no fixed types. You can assign a convenience variable any
type of value, including structures and arrays, even if that variable already has a value
of a different type. The convenience variable, when used as an expression, has the type
of its current value.
show convenience
Print a list of convenience variables used so far, and their
values. Abbreviated show conv.
A convenient variable can be used as a counter to be incremented or a pointer to be
advanced. For example, to print a field from successive elements of an array of
structures:
set $i = 0
print bar[$i++]->contents
Repeat that command by typing RET.
Some convenience variables are created automatically by GDB and assigned values.
$_ The variable $_ is automatically set by the x command to the last
address examined (see “Examining memory” (page 87)). Other
commands which provide a default address for x to examine, also set
$_ to that address. These commands include info line and info
breakpoint. The type of $_ is void * except when set by the x
command, in which case it is a pointer to the type of $__.
$__ The variable $__ is automatically set by the x command to the value
found in the last address examined. Its type is chosen to match the
format in which the data was printed.
$_exitcode The variable $_exitcode is automatically set to the exit code when
the program being debugged terminates.
On HP-UX systems, if you refer to a function or variable name that begins with a dollar
sign, GDB searches for a user or system name first, before it searches for a convenience
variable.
8.9 Convenience variables 97
Vedere la pagina 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 368 369

Commenti su questo manuale

Nessun commento

CDA CI330 manuali

Manuali dei proprietari e guide per l'utente per Lavatrici CDA CI330.
We fornisce 1 manuali pdf CDA CI330 per scaricare gratuitamente in base al tipo di documento: Specifiche






Più prodotti e manuali per Lavatrici CDA

Modelli Tipo di Documento
CI230WH Specifiche   CDA CI230SI washing machine, 28 pagine
CI240WH Specifiche   CDA CI240WH washing machine, 24 pagine
CI370 Manuale delle Istruzioni   CDA CI370 washing machine, 21 pagine
CI340 Specifiche   CDA CI340 washing machine, 24 pagine
ci925 Specifiche   CDA ci925 Specifications, 36 pagine
C1370 Manuale Utente   UL TEST REPORT AND PROCEDURE [en] , 173 pagine
3Z9 Manuale Utente   3Z9 Extractors, 12 pagine
CI394 Specifiche   CDA CI394 Specifications, 36 pagine
CI340 Informazioni Techniche   CDA CI340 Technical information, 65 pagine
CI240 Specifiche   CDA CI240 Specifications, 24 pagine
ci261 Specifiche   CDA ci261 Specifications, 74 pagine