Ignore:
Timestamp:
2009-03-16T21:58:05Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f36c061
Parents:
d9167a1c
Message:

Make kernel symbol information optional.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/trap/exception.c

    rd9167a1c re2b762ec  
    4141#include <arch/register.h>
    4242#include <debug.h>
     43#include <print.h>
     44
     45#ifdef CONFIG_SYMTAB
    4346#include <symtab.h>
    44 #include <print.h>
     47#endif
    4548
    4649void dump_istate(istate_t *istate)
    4750{
     51        char *tpcs, *tnpcs;
     52
     53#ifdef CONFIG_SYMTAB
     54        tpcs = get_symtab_entry(istate->tpc);
     55        tnpcs = get_symtab_entry(istate->tnpc);
     56#else
     57        tpcs = tnpcs = "n/a";
     58#endif
    4859        printf("TSTATE=%#" PRIx64 "\n", istate->tstate);
    49         printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, get_symtab_entry(istate->tpc));
    50         printf("TNPC=%#" PRIx64 " (%s)\n", istate->tnpc, get_symtab_entry(istate->tnpc));
     60        printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, tpcs);
     61        printf("TNPC=%#" PRIx64 " (%s)\n", istate->tnpc, tnpcs);
    5162}
    5263
Note: See TracChangeset for help on using the changeset viewer.