Changeset e2b762ec in mainline for kernel/arch/amd64


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.

Location:
kernel/arch/amd64/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/src/debugger.c

    rd9167a1c re2b762ec  
    3636#include <console/kconsole.h>
    3737#include <console/cmd.h>
    38 #include <symtab.h>
    3938#include <print.h>
    4039#include <panic.h>
     
    4544#include <func.h>
    4645#include <smp/ipi.h>
     46
     47#ifdef CONFIG_SYMTAB
     48#include <symtab.h>
     49#endif
    4750
    4851typedef struct  {
     
    230233                }
    231234        }
     235
     236#ifdef CONFIG_SYMTAB
    232237        printf("Reached breakpoint %d:%lx(%s)\n", slot, getip(istate),
    233238            get_symtab_entry(getip(istate)));
     239#else
     240        printf("Reached breakpoint %d:%lx\n", slot, getip(istate));
     241#endif
    234242
    235243#ifdef CONFIG_KCONSOLE
     
    356364        for (i = 0; i < BKPOINTS_MAX; i++)
    357365                if (breakpoints[i].address) {
     366#ifdef CONFIG_SYMTAB
    358367                        symbol = get_symtab_entry(breakpoints[i].address);
     368#else
     369                        symbol = "n/a";
     370#endif
    359371
    360372#ifdef __32_BITS__
  • kernel/arch/amd64/src/interrupt.c

    rd9167a1c re2b762ec  
    4444#include <mm/as.h>
    4545#include <arch.h>
    46 #include <symtab.h>
    4746#include <arch/asm.h>
    4847#include <proc/scheduler.h>
     
    5453#include <ddi/irq.h>
    5554
     55#ifdef CONFIG_SYMTAB
     56#include <symtab.h>
     57#endif
     58
    5659/*
    5760 * Interrupt and exception dispatching.
     
    6770/*      uint64_t *x = &istate->stack[0]; */
    6871
     72#ifdef CONFIG_SYMTAB
    6973        if (!(symbol = get_symtab_entry(istate->rip)))
    7074                symbol = "";
     75#else
     76        symbol = "";
     77#endif
    7178
    7279        printf("-----EXCEPTION(%d) OCCURED----- ( %s )\n", n, __func__);
Note: See TracChangeset for help on using the changeset viewer.