Ignore:
Timestamp:
2023-10-26T15:20:07Z (13 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
2fbb42f
Parents:
d28bdbe
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-26 14:42:03)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-26 15:20:07)
Message:

Read symbol table from ELF sections

Instead of the currently broken data generated using genmap.py,
read the ELF symbol table for stack traces and symbol names.
In addition to that, prepare ground for accessing DWARF debug
sections.

Because neither .symtab, nor .debug_* sections are
normally part of the program image, these have to be provided
externally. Instead of the previous way of relinking kernel
to bake in the symbol data, we now only link kernel once
and the extra debug data is loaded as part of the initrd image.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/kconsole.c

    rd28bdbe rda13982  
    8585SPINLOCK_INITIALIZE(cmd_lock);  /**< Lock protecting command list. */
    8686LIST_INITIALIZE(cmd_list);      /**< Command list. */
     87
     88#define MAX_SYMBOL_NAME 64
    8789
    8890static char32_t history[KCONSOLE_HISTORY][MAX_CMDLINE] = { };
Note: See TracChangeset for help on using the changeset viewer.