summaryrefslogtreecommitdiff
path: root/libguile/stackchk.c
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2005-03-02 20:42:01 +0000
committerMarius Vollmer <mvo@zagadka.de>2005-03-02 20:42:01 +0000
commit9de87eea47536e25ef99bc25f07afdd759ee3575 (patch)
tree936d52588ace67469aba68f6ad47cbf1a12462ca /libguile/stackchk.c
parentcb1cfc42a4f5ac4d60a64b425795432a0388ad7e (diff)
See ChangeLog from 2005-03-02.
Diffstat (limited to 'libguile/stackchk.c')
-rw-r--r--libguile/stackchk.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/libguile/stackchk.c b/libguile/stackchk.c
index eaedd1c26..4382d871c 100644
--- a/libguile/stackchk.c
+++ b/libguile/stackchk.c
@@ -61,19 +61,20 @@ scm_stack_size (SCM_STACKITEM *start)
void
scm_stack_report ()
{
+ SCM port = scm_current_error_port ();
SCM_STACKITEM stack;
- scm_uintprint (scm_stack_size (SCM_BASE (scm_rootcont)) * sizeof (SCM_STACKITEM),
- 16, scm_cur_errp);
- scm_puts (" of stack: 0x", scm_cur_errp);
- scm_uintprint ((scm_t_bits) SCM_BASE (scm_rootcont), 16, scm_cur_errp);
- scm_puts (" - 0x", scm_cur_errp);
- scm_uintprint ((scm_t_bits) &stack, 16, scm_cur_errp);
- scm_puts ("\n", scm_cur_errp);
+ scm_i_thread *thread = SCM_I_CURRENT_THREAD;
+
+ scm_uintprint ((scm_stack_size (thread->continuation_base)
+ * sizeof (SCM_STACKITEM)),
+ 16, port);
+ scm_puts (" of stack: 0x", port);
+ scm_uintprint ((scm_t_bits) thread->continuation_base, 16, port);
+ scm_puts (" - 0x", port);
+ scm_uintprint ((scm_t_bits) &stack, 16, port);
+ scm_puts ("\n", port);
}
-
-
-
void
scm_init_stackchk ()
{