Changeset e2b762ec in mainline for kernel/arch/amd64/src/debugger.c


Ignore:
Timestamp:
2009-03-16T21:58:05Z (15 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/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__
Note: See TracChangeset for help on using the changeset viewer.