Changeset ff4c4f5 in mainline for arch/amd64/src/interrupt.c


Ignore:
Timestamp:
2005-09-05T11:59:09Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c0b45fa
Parents:
342616d
Message:

Symtab now contains variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified arch/amd64/src/interrupt.c

    r342616d rff4c4f5  
    4141
    4242
     43
     44static void messy_stack_trace(__native *stack)
     45{
     46        __native *upper_limit = (__native *)(((__native)THREAD->kstack) + STACK_SIZE);
     47        char *symbol;
     48
     49        printf("Stack contents: ");
     50        while (stack < upper_limit) {
     51                symbol = get_symtab_entry((__address)*stack);
     52                if (symbol)
     53                        printf("%s, ", symbol);
     54                stack++;
     55        }
     56        printf("\n");
     57}
     58
    4359static void print_info_errcode(__u8 n, __native x[])
    4460{
     
    6581        printf("       %Q, %Q, %Q\n", x[20], x[21], x[22]);
    6682        printf("       %Q, %Q, %Q\n", x[23], x[24], x[25]);
     83        messy_stack_trace(&x[5]);
    6784}
    6885
Note: See TracChangeset for help on using the changeset viewer.