Subversion Repositories HelenOS

Rev

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

Rev 4132 Rev 4137
Line 43... Line 43...
43
#include <console/kconsole.h>
43
#include <console/kconsole.h>
44
#include <console/console.h>
44
#include <console/console.h>
45
#include <console/cmd.h>
45
#include <console/cmd.h>
46
#include <panic.h>
46
#include <panic.h>
47
#include <print.h>
47
#include <print.h>
48
 
-
 
49
#ifdef CONFIG_SYMTAB
-
 
50
#include <symtab.h>
48
#include <symtab.h>
51
#endif
-
 
52
 
49
 
53
static struct {
50
static struct {
54
    const char *name;
51
    const char *name;
55
    iroutine f;
52
    iroutine f;
56
} exc_table[IVT_ITEMS];
53
} exc_table[IVT_ITEMS];
Line 131... Line 128...
131
    printf("Exc Description          Handler            Symbol\n");
128
    printf("Exc Description          Handler            Symbol\n");
132
    printf("--- -------------------- ------------------ --------\n");
129
    printf("--- -------------------- ------------------ --------\n");
133
#endif
130
#endif
134
   
131
   
135
    for (i = 0; i < IVT_ITEMS; i++) {
132
    for (i = 0; i < IVT_ITEMS; i++) {
136
#ifdef CONFIG_SYMTAB
-
 
137
        symbol = get_symtab_entry((unative_t) exc_table[i].f);
133
        symbol = symtab_fmt_name_lookup((unative_t) exc_table[i].f);
138
        if (!symbol)
-
 
139
            symbol = "not found";
-
 
140
#else
-
 
141
        symbol = "n/a";
-
 
142
#endif
-
 
143
 
134
 
144
#ifdef __32_BITS__
135
#ifdef __32_BITS__
145
        printf("%-3u %-20s %10p %s\n", i + IVT_FIRST, exc_table[i].name,
136
        printf("%-3u %-20s %10p %s\n", i + IVT_FIRST, exc_table[i].name,
146
            exc_table[i].f, symbol);
137
            exc_table[i].f, symbol);
147
#endif
138
#endif