Skip to content
Snippets Groups Projects
Commit c706e10c authored by wlott's avatar wlott
Browse files

Added stuff to deal with save and restore.

parent bbf21b36
No related branches found
No related tags found
No related merge requests found
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/ldb.c,v 1.6 1990/06/03 22:37:00 ch Exp $ */
/* $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/ldb/Attic/ldb.c,v 1.7 1990/07/01 04:42:29 wlott Exp $ */
/* Lisp kernel core debugger */
#include <stdio.h>
......@@ -43,6 +43,7 @@ char *envp[];
{
char *arg, **argptr;
char *core = NULL;
boolean restore_state;
define_var("nil", NIL, TRUE);
define_var("t", T, TRUE);
......@@ -75,18 +76,22 @@ char *envp[];
validate();
load_core_file(core);
globals_init();
restore_state = load_core_file(core);
interrupt_init();
/* Convert the argv and envp to something Lisp can grok. */
SetSymbolValue(LISP_COMMAND_LINE_LIST, alloc_str_list(argv));
SetSymbolValue(LISP_ENVIRONMENT_LIST, alloc_str_list(envp));
/* Snag a few of the signal */
test_init();
while (1)
monitor();
if (restore_state)
restore();
else
while (1)
ldb_monitor();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment