Lines Matching full:symtab
10 #include <zephyr/debug/symtab.h>
22 const struct symtab_info *const symtab = symtab_get(); in symtab_find_symbol_name() local
23 const uint32_t symbol_offset = addr - symtab->first_addr; in symtab_find_symbol_name()
24 uint32_t left = 0, right = symtab->length; in symtab_find_symbol_name()
29 if (symbol_offset < symtab->entries[symtab->length].offset) { in symtab_find_symbol_name()
33 if ((symbol_offset >= symtab->entries[mid].offset) && in symtab_find_symbol_name()
34 (symbol_offset < symtab->entries[mid + 1].offset)) { in symtab_find_symbol_name()
35 ret_offset = symbol_offset - symtab->entries[mid].offset; in symtab_find_symbol_name()
36 ret_name = symtab->entries[mid].name; in symtab_find_symbol_name()
38 } else if (symbol_offset < symtab->entries[mid].offset) { in symtab_find_symbol_name()
59 const struct symtab_info *const symtab = symtab_get(); in cmd_symtab_list() local
61 for (uint32_t i = 0; i < symtab->length; i++) { in cmd_symtab_list()
62 const struct z_symtab_entry *const entry = &symtab->entries[i]; in cmd_symtab_list()
64 shell_print(sh, "%d\t%p %s", i + 1, (void *)(entry->offset + symtab->first_addr), in cmd_symtab_list()
76 SHELL_CMD_REGISTER(symtab, &symtab_cmds, "Symbol table shell commands", NULL);