@@ -534,21 +534,30 @@ DUK_LOCAL void duk__print_hobject(duk__dprint_state *st, duk_hobject *h) {
534534#endif
535535 } else if (st -> internal && DUK_HOBJECT_IS_THREAD (h )) {
536536 duk_hthread * t = (duk_hthread * ) h ;
537+ DUK__COMMA (); duk_fb_sprintf (fb , "__ptr_curr_pc:%p" , (void * ) t -> ptr_curr_pc );
538+ DUK__COMMA (); duk_fb_sprintf (fb , "__heap:%p" , (void * ) t -> heap );
537539 DUK__COMMA (); duk_fb_sprintf (fb , "__strict:%ld" , (long ) t -> strict );
538540 DUK__COMMA (); duk_fb_sprintf (fb , "__state:%ld" , (long ) t -> state );
539541 DUK__COMMA (); duk_fb_sprintf (fb , "__unused1:%ld" , (long ) t -> unused1 );
540542 DUK__COMMA (); duk_fb_sprintf (fb , "__unused2:%ld" , (long ) t -> unused2 );
541543 DUK__COMMA (); duk_fb_sprintf (fb , "__valstack_max:%ld" , (long ) t -> valstack_max );
542544 DUK__COMMA (); duk_fb_sprintf (fb , "__callstack_max:%ld" , (long ) t -> callstack_max );
543- DUK__COMMA (); duk_fb_sprintf (fb , "__catchstack_max:%ld" , (long ) t -> catchstack_max );
544545 DUK__COMMA (); duk_fb_sprintf (fb , "__valstack:%p" , (void * ) t -> valstack );
545546 DUK__COMMA (); duk_fb_sprintf (fb , "__valstack_end:%p/%ld" , (void * ) t -> valstack_end , (long ) (t -> valstack_end - t -> valstack ));
546547 DUK__COMMA (); duk_fb_sprintf (fb , "__valstack_bottom:%p/%ld" , (void * ) t -> valstack_bottom , (long ) (t -> valstack_bottom - t -> valstack ));
547548 DUK__COMMA (); duk_fb_sprintf (fb , "__valstack_top:%p/%ld" , (void * ) t -> valstack_top , (long ) (t -> valstack_top - t -> valstack ));
548- DUK__COMMA (); duk_fb_sprintf (fb , "__catchstack:%p" , (void * ) t -> catchstack );
549- DUK__COMMA (); duk_fb_sprintf (fb , "__catchstack_size:%ld" , (long ) t -> catchstack_size );
550- DUK__COMMA (); duk_fb_sprintf (fb , "__catchstack_top:%ld" , (long ) t -> catchstack_top );
549+ DUK__COMMA (); duk_fb_sprintf (fb , "__callstack:%p" , (void * ) t -> callstack );
550+ DUK__COMMA (); duk_fb_sprintf (fb , "__callstack_curr:%p" , (void * ) t -> callstack_curr );
551+ DUK__COMMA (); duk_fb_sprintf (fb , "__callstack_size:%ld" , (long ) t -> callstack_size );
552+ DUK__COMMA (); duk_fb_sprintf (fb , "__callstack_top:%ld" , (long ) t -> callstack_top );
553+ DUK__COMMA (); duk_fb_sprintf (fb , "__callstack_preventcount:%ld" , (long ) t -> callstack_preventcount );
551554 DUK__COMMA (); duk_fb_sprintf (fb , "__resumer:" ); duk__print_hobject (st , (duk_hobject * ) t -> resumer );
555+ DUK__COMMA (); duk_fb_sprintf (fb , "__compile_ctx:%p" , (void * ) t -> compile_ctx );
556+ #if defined(DUK_USE_INTERRUPT_COUNTER )
557+ DUK__COMMA (); duk_fb_sprintf (fb , "__interrupt_counter:%ld" , (long ) t -> interrupt_counter );
558+ DUK__COMMA (); duk_fb_sprintf (fb , "__interrupt_init:%ld" , (long ) t -> interrupt_init );
559+ #endif
560+
552561 /* XXX: print built-ins array? */
553562
554563 }
0 commit comments