Subversion Repositories HelenOS-historic

Rev

Rev 297 | Rev 309 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 297 Rev 299
Line 41... Line 41...
41
 
41
 
42
 
42
 
43
 
43
 
44
static void messy_stack_trace(__native *stack)
44
static void messy_stack_trace(__native *stack)
45
{
45
{
46
    __native *upper_limit = (__native *)(((__native)THREAD->kstack) + STACK_SIZE);
46
    __native *upper_limit = (__native *)(((__native)get_stack_base()) + STACK_SIZE);
47
    char *symbol;
47
    char *symbol;
48
 
48
 
49
    printf("Stack contents: ");
49
    printf("Stack contents: ");
50
    while (stack < upper_limit) {
50
    while (stack < upper_limit) {
51
        symbol = get_symtab_entry((__address)*stack);
51
        symbol = get_symtab_entry((__address)*stack);