Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/zephyr/debug/symtab.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ struct symtab_info {
*
* @return Pointer to the symbol table.
*/
const struct symtab_info *const symtab_get(void);
const struct symtab_info *symtab_get(void);

/**
* @brief Find the symbol name with a binary search
Expand All @@ -57,7 +57,7 @@ const struct symtab_info *const symtab_get(void);
*
* @return Name of the nearest symbol if found, otherwise "?" is returned.
*/
const char *const symtab_find_symbol_name(uintptr_t addr, uint32_t *offset);
const char *symtab_find_symbol_name(uintptr_t addr, uint32_t *offset);

/**
* @}
Expand Down
4 changes: 2 additions & 2 deletions subsys/debug/symtab/symtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
#include <zephyr/debug/symtab.h>
#include <zephyr/shell/shell.h>

const struct symtab_info *const symtab_get(void)
const struct symtab_info *symtab_get(void)
{
extern const struct symtab_info z_symtab;

return &z_symtab;
}

const char *const symtab_find_symbol_name(uintptr_t addr, uint32_t *offset)
const char *symtab_find_symbol_name(uintptr_t addr, uint32_t *offset)
{
const struct symtab_info *const symtab = symtab_get();
const uint32_t symbol_offset = addr - symtab->first_addr;
Expand Down
Loading