mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-23 20:15:05 +02:00
Added hooks to runtime for call history.
Still need to log the actual calls at runtime.
This commit is contained in:
parent
af1cf74b3b
commit
384a5ce0fe
3 changed files with 6 additions and 2 deletions
|
@ -45,8 +45,9 @@ static void main_main (stack_size,heap_size,stack_base)
|
|||
stack_size,(void *)stack_base,(void *)stack_limit1);
|
||||
printf("main: Try different stack sizes from 4 K to 1 Meg.\n");
|
||||
#endif
|
||||
/* Do initializations of Lisp objects and rewrite rules.
|
||||
quote_list_f = mlist1(boolean_f); quote_list_t = mlist1(boolean_t); */
|
||||
|
||||
/* Initialize stack trace table */
|
||||
Cyc_st_init();
|
||||
|
||||
{
|
||||
|
||||
|
|
|
@ -212,6 +212,8 @@ object Cyc_default_exception_handler(int argc, closure _, object err) {
|
|||
}
|
||||
}
|
||||
|
||||
fprintf(stderr, "\nCall history:\n");
|
||||
Cyc_st_print(stderr);
|
||||
fprintf(stderr, "\n");
|
||||
exit(1);
|
||||
return nil;
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
(set! x 1)
|
||||
(write x)
|
||||
(write 'Cyc_procedure)
|
||||
(open-input-file "1.scm")
|
||||
;;; TODO: C macros for funcall1, etc are not being generated even though entries are set
|
||||
;;; in the vector. must be another problem inspecting the vector ???
|
||||
;(write 'hello)
|
||||
|
|
Loading…
Add table
Reference in a new issue