aboutsummaryrefslogtreecommitdiff
path: root/gdb/kdb-start.c
blob: bdbc272683128abf5e90e3a26c39346d33097bd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "defs.h"
#include "param.h"

static char *args[] = {"kdb", "kdb-symbols", 0};

static char *environment[] = {0};

char **environ;

start ()
{
#ifdef NAMES_HAVE_UNDERSCORE
  INIT_STACK (_kdb_stack_beg, _kdb_stack_end);
#else /* not NAMES_HAVE_UNDERSCORE */
  INIT_STACK (kdb_stack_beg, kdb_stack_end);
#endif /* not NAMES_HAVE_UNDERSCORE */

  environ = environment;

  main (2, args, environment);
}