summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/args.c
blob: 637544a9050e06e2956f5d84e2f9beb140c99aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int
main (int argc, char **argv)
{
  int i = 0;
  printf ("%d\n", argc);
  while (i < argc)
    printf ("%s\n", argv[i++]);

  return 0; /* set breakpoint here */
}