cab0c772ae
* value.c (enum internalvar_kind): Replace INTERNALVAR_SCALAR by INTERNALVAR_INTEGER and INTERNALVAR_POINTER. (union internalvar_data): Replace "scalar" member by "integer" and "pointer". (value_of_internalvar): Handle INTERNALVAR_INTEGER and INTERNALVAR_POINTER instead of INTERNALVAR_SCALAR. (get_internalvar_integer): Likewise. (set_internalvar): Likewise. (set_internalvar_integer): Likewise. (preserve_one_internalvar): Likewise. (value_from_pointer): Handle typedef'd pointer types. testsuite/ChangeLog: 2009-08-19 Doug Evans <dje@google.com> * gdb.base/gdbvars.c: New file. * gdb.base/gdbvars.exp: Test convenience vars with program variables.
16 lines
197 B
C
16 lines
197 B
C
/* Simple program to help exercise gdb's convenience variables. */
|
|
|
|
typedef void *ptr;
|
|
|
|
ptr p = &p;
|
|
|
|
int
|
|
main ()
|
|
{
|
|
#ifdef usestubs
|
|
set_debug_traps ();
|
|
breakpoint ();
|
|
#endif
|
|
|
|
return 0;
|
|
}
|