Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/debug/symtab.c

    rd99c1d2 r0dee005  
    3838#include <symtab.h>
    3939#include <byteorder.h>
    40 #include <str.h>
     40#include <string.h>
    4141#include <print.h>
    42 #include <typedefs.h>
     42#include <arch/types.h>
    4343#include <typedefs.h>
    4444#include <errno.h>
     
    5454 *
    5555 */
    56 int symtab_name_lookup(uintptr_t addr, const char **name, uintptr_t *offset)
     56int symtab_name_lookup(uintptr_t addr, char **name, uintptr_t *offset)
    5757{
    5858#ifdef CONFIG_SYMTAB
     
    9292 *
    9393 */
    94 const char *symtab_fmt_name_lookup(uintptr_t addr)
    95 {
    96         const char *name;
     94char *symtab_fmt_name_lookup(uintptr_t addr)
     95{
     96        char *name;
    9797        int rc = symtab_name_lookup(addr, &name, NULL);
    9898       
     
    239239                printf("\n");
    240240                pos = 0;
    241                 while (symtab_search_one(name, &pos)) {
     241                while ((hint = symtab_search_one(name, &pos))) {
    242242                        printf("%s\n", symbol_table[pos].symbol_name);
    243243                        pos++;
Note: See TracChangeset for help on using the changeset viewer.