Changeset 11949


Ignore:
Timestamp:
Apr 13, 2009, 3:08:08 AM (10 years ago)
Author:
gz
Message:

When entering the kernel debugger in batch mode, dump out a whole bunch of info to stderr before abort()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0711/ccl/lisp-kernel/lisp-debug.c

    r11507 r11949  
    10451045  }
    10461046
    1047   if (lisp_global(BATCH_FLAG)) {
    1048     abort();
    1049   }
    10501047  if (xp) {
    10511048    if (why > debug_entry_exception) {
     
    10541051    debug_identify_function(xp, info);
    10551052  }
     1053  if (lisp_global(BATCH_FLAG)) {
     1054#ifdef WINDOWS
     1055    fprintf(stderr, "Current Process Id %d\n", (int)GetCurrentProcessId());
     1056#else
     1057    fprintf(stderr, "Main thread pid %d\n", main_thread_pid);
     1058#endif
     1059    debug_thread_info(xp, info, 0);
     1060    if (xp) {
     1061      debug_show_registers(xp, info, 0);
     1062      debug_lisp_registers(xp, info, 0);
     1063      debug_show_fpu(xp, info, 0);
     1064    }
     1065    debug_backtrace(xp, info, 0);
     1066    abort();
     1067  }
     1068
    10561069  fprintf(stderr, "? for help\n");
    10571070  while (state == debug_continue) {
Note: See TracChangeset for help on using the changeset viewer.