File:  [GNU Debugger] / gdb / testregs.c
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:54:32 2018 UTC (3 years, 7 months ago) by root
Branches: fsf, MAIN
CVS tags: gdb_2_8_1, gdb_2_8, gdb_2_5_3, gdb_2_5_2, gdb_2_5_1, gdb-2_4_coff, HEAD
gdb-2.4+.aux.coff

typedef struct aa { int b;} *hack;

static int
foo (argc)
{
  register int a = 0x1234;
  register int b = 0x56788765;
  register char *x = (char *) 0xabababab;
  register char *y = (char *) 0xcdcdcdcd;
  register double d = 1.582;
  int loser;
  printf ("Address of loser is 0x%x.\n", &loser);
  printf ("Address of argc is 0x%x.\n", &argc);
  abort ();
}

main (argc)
{
  foo (argc);
}

unix.superglobalmegacorp.com