Changeset 40eab9f in mainline for kernel/generic/include
- Timestamp:
- 2023-11-03T18:47:41Z (2 years ago)
- Branches:
- master, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b1397ab
- Parents:
- dcd8214
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-11-03 18:46:22)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-11-03 18:47:41)
- Location:
- kernel/generic/include
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/debug/line.h
rdcd8214 r40eab9f 33 33 #include <stddef.h> 34 34 #include <stdint.h> 35 #include <debug/sections.h> 35 36 36 37 struct debug_line_program_header { … … 103 104 } 104 105 105 extern bool debug_line_get_address_info( uintptr_t addr, int op_index, const char **file, const char **dir, int *line, int *col);106 extern bool debug_line_get_address_info(debug_sections_t *scs, uintptr_t addr, int op_index, const char **file, const char **dir, int *line, int *col); 106 107 107 108 #endif /* DWARFS_LINE_H_ */ -
kernel/generic/include/debug/sections.h
rdcd8214 r40eab9f 33 33 #include <stddef.h> 34 34 35 extern const void *debug_aranges; 36 extern size_t debug_aranges_size; 35 typedef struct { 36 const void *debug_aranges; 37 size_t debug_aranges_size; 37 38 38 externconst void *debug_info;39 externsize_t debug_info_size;39 const void *debug_info; 40 size_t debug_info_size; 40 41 41 externconst void *debug_abbrev;42 externsize_t debug_abbrev_size;42 const void *debug_abbrev; 43 size_t debug_abbrev_size; 43 44 44 externconst void *debug_line;45 externsize_t debug_line_size;45 const void *debug_line; 46 size_t debug_line_size; 46 47 47 externconst char *debug_str;48 externsize_t debug_str_size;48 const char *debug_str; 49 size_t debug_str_size; 49 50 50 externconst char *debug_line_str;51 externsize_t debug_line_str_size;51 const char *debug_line_str; 52 size_t debug_line_str_size; 52 53 53 externconst void *debug_rnglists;54 externsize_t debug_rnglists_size;54 const void *debug_rnglists; 55 size_t debug_rnglists_size; 55 56 56 externconst void *eh_frame_hdr;57 externsize_t eh_frame_hdr_size;57 const void *eh_frame_hdr; 58 size_t eh_frame_hdr_size; 58 59 59 externconst void *eh_frame;60 externsize_t eh_frame_size;60 const void *eh_frame; 61 size_t eh_frame_size; 61 62 62 externconst elf_symbol_t *symtab;63 externsize_t symtab_size;63 const elf_symbol_t *symtab; 64 size_t symtab_size; 64 65 65 extern const char *strtab; 66 extern size_t strtab_size; 66 const char *strtab; 67 size_t strtab_size; 68 } debug_sections_t; 69 70 extern debug_sections_t kernel_sections; 71 72 debug_sections_t get_debug_sections(const void *elf, size_t elf_size); 67 73 68 74 #endif /* DEBUG_SECTIONS_H_ */ -
kernel/generic/include/proc/program.h
rdcd8214 r40eab9f 56 56 57 57 extern errno_t program_create(as_t *, uspace_addr_t, char *, program_t *); 58 extern errno_t program_create_from_image(void *, char *, program_t *);58 extern errno_t program_create_from_image(void *, size_t, char *, program_t *); 59 59 extern errno_t program_create_loader(program_t *, char *); 60 60 extern void program_ready(program_t *); -
kernel/generic/include/proc/task.h
rdcd8214 r40eab9f 36 36 #define KERN_TASK_H_ 37 37 38 #include <cpu.h> 39 #include <ipc/ipc.h> 40 #include <ipc/event.h> 41 #include <ipc/kbox.h> 42 #include <synch/spinlock.h> 43 #include <synch/mutex.h> 38 #include <abi/proc/task.h> 39 #include <abi/sysinfo.h> 44 40 #include <adt/list.h> 45 41 #include <adt/odict.h> 46 #include <security/perm.h> 42 #include <arch/context.h> 43 #include <arch/cpu.h> 44 #include <arch/fpu_context.h> 47 45 #include <arch/proc/task.h> 48 46 #include <arch/proc/thread.h> 49 #include <arch/context.h> 50 #include <arch/fpu_context.h> 51 #include <arch/cpu.h> 47 #include <arch.h> 48 #include <cap/cap.h> 49 #include <cpu.h> 50 #include <debug/sections.h> 51 #include <ipc/event.h> 52 #include <ipc/ipc.h> 53 #include <ipc/kbox.h> 54 #include <mm/as.h> 52 55 #include <mm/tlb.h> 53 56 #include <proc/scheduler.h> 57 #include <security/perm.h> 58 #include <synch/mutex.h> 59 #include <synch/spinlock.h> 54 60 #include <udebug/udebug.h> 55 #include <mm/as.h>56 #include <abi/proc/task.h>57 #include <abi/sysinfo.h>58 #include <arch.h>59 #include <cap/cap.h>60 61 61 62 #define TASK CURRENT->task … … 131 132 uint64_t ucycles; 132 133 uint64_t kcycles; 134 135 debug_sections_t *debug_sections; 133 136 } task_t; 134 137 -
kernel/generic/include/symtab.h
rdcd8214 r40eab9f 36 36 #define KERN_SYMTAB_H_ 37 37 38 #include <stdbool.h> 38 39 #include <typedefs.h> 40 #include <debug/sections.h> 39 41 40 42 extern void symtab_print_search(const char *); … … 42 44 extern const char *symtab_fmt_name_lookup(uintptr_t); 43 45 extern errno_t symtab_addr_lookup(const char *, uintptr_t *); 44 extern const char *symtab_name_lookup(uintptr_t, uintptr_t * );46 extern const char *symtab_name_lookup(uintptr_t, uintptr_t *, debug_sections_t *); 45 47 46 48 #endif
Note:
See TracChangeset
for help on using the changeset viewer.