aboutsummaryrefslogtreecommitdiff
path: root/gdb/kdb-start.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/kdb-start.c')
-rw-r--r--gdb/kdb-start.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gdb/kdb-start.c b/gdb/kdb-start.c
new file mode 100644
index 0000000..bdbc272
--- /dev/null
+++ b/gdb/kdb-start.c
@@ -0,0 +1,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);
+}