diff options
Diffstat (limited to 'gdb/gdbarch-gen.h')
-rw-r--r-- | gdb/gdbarch-gen.h | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/gdb/gdbarch-gen.h b/gdb/gdbarch-gen.h index abffcf9..281b97b 100644 --- a/gdb/gdbarch-gen.h +++ b/gdb/gdbarch-gen.h @@ -3,7 +3,7 @@ /* Dynamic architecture support for GDB, the GNU debugger. - Copyright (C) 1998-2024 Free Software Foundation, Inc. + Copyright (C) 1998-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -818,10 +818,11 @@ typedef CORE_ADDR (gdbarch_skip_trampoline_code_ftype) (const frame_info_ptr &fr extern CORE_ADDR gdbarch_skip_trampoline_code (struct gdbarch *gdbarch, const frame_info_ptr &frame, CORE_ADDR pc); extern void set_gdbarch_skip_trampoline_code (struct gdbarch *gdbarch, gdbarch_skip_trampoline_code_ftype *skip_trampoline_code); -/* Vtable of solib operations functions. */ +/* Return a newly-allocated solib_ops object capable of providing the solibs for this architecture. */ -extern const solib_ops * gdbarch_so_ops (struct gdbarch *gdbarch); -extern void set_gdbarch_so_ops (struct gdbarch *gdbarch, const solib_ops * so_ops); +typedef solib_ops_up (gdbarch_make_solib_ops_ftype) (); +extern solib_ops_up gdbarch_make_solib_ops (struct gdbarch *gdbarch); +extern void set_gdbarch_make_solib_ops (struct gdbarch *gdbarch, gdbarch_make_solib_ops_ftype *make_solib_ops); /* If in_solib_dynsym_resolve_code() returns true, and SKIP_SOLIB_RESOLVER evaluates non-zero, this is the address where the debugger will place @@ -859,7 +860,7 @@ extern void set_gdbarch_stack_frame_destroyed_p (struct gdbarch *gdbarch, gdbarc /* Process an ELF symbol in the minimal symbol table in a backend-specific way. Normally this hook is supposed to do nothing, however if required, - then this hook can be used to apply tranformations to symbols that are + then this hook can be used to apply transformations to symbols that are considered special in some way. For example the MIPS backend uses it to interpret `st_other' information to mark compressed code symbols so that they can be treated in the appropriate manner in the processing of @@ -867,8 +868,8 @@ extern void set_gdbarch_stack_frame_destroyed_p (struct gdbarch *gdbarch, gdbarc extern bool gdbarch_elf_make_msymbol_special_p (struct gdbarch *gdbarch); -typedef void (gdbarch_elf_make_msymbol_special_ftype) (asymbol *sym, struct minimal_symbol *msym); -extern void gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, asymbol *sym, struct minimal_symbol *msym); +typedef void (gdbarch_elf_make_msymbol_special_ftype) (const asymbol *sym, struct minimal_symbol *msym); +extern void gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, const asymbol *sym, struct minimal_symbol *msym); extern void set_gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, gdbarch_elf_make_msymbol_special_ftype *elf_make_msymbol_special); typedef void (gdbarch_coff_make_msymbol_special_ftype) (int val, struct minimal_symbol *msym); @@ -877,7 +878,7 @@ extern void set_gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch, gdba /* Process a symbol in the main symbol table in a backend-specific way. Normally this hook is supposed to do nothing, however if required, - then this hook can be used to apply tranformations to symbols that + then this hook can be used to apply transformations to symbols that are considered special in some way. This is currently used by the MIPS backend to make sure compressed code symbols have the ISA bit set. This in turn is needed for symbol values seen in GDB to match @@ -1325,8 +1326,8 @@ extern void set_gdbarch_get_siginfo_type (struct gdbarch *gdbarch, gdbarch_get_s extern bool gdbarch_record_special_symbol_p (struct gdbarch *gdbarch); -typedef void (gdbarch_record_special_symbol_ftype) (struct gdbarch *gdbarch, struct objfile *objfile, asymbol *sym); -extern void gdbarch_record_special_symbol (struct gdbarch *gdbarch, struct objfile *objfile, asymbol *sym); +typedef void (gdbarch_record_special_symbol_ftype) (struct gdbarch *gdbarch, struct objfile *objfile, const asymbol *sym); +extern void gdbarch_record_special_symbol (struct gdbarch *gdbarch, struct objfile *objfile, const asymbol *sym); extern void set_gdbarch_record_special_symbol (struct gdbarch *gdbarch, gdbarch_record_special_symbol_ftype *record_special_symbol); /* Function for the 'catch syscall' feature. @@ -1389,7 +1390,7 @@ extern void set_gdbarch_stap_register_suffixes (struct gdbarch *gdbarch, const c (%eax) ;; indirecting eax - in this case, this prefix would be the charater `('. + in this case, this prefix would be the character `('. Please note that we use the indirection prefix also for register displacement, e.g., `4(%eax)' on x86. */ @@ -1403,7 +1404,7 @@ extern void set_gdbarch_stap_register_indirection_prefixes (struct gdbarch *gdba (%eax) ;; indirecting eax - in this case, this prefix would be the charater `)'. + in this case, this prefix would be the character `)'. Please note that we use the indirection suffix also for register displacement, e.g., `4(%eax)' on x86. */ @@ -1623,7 +1624,7 @@ typedef void (gdbarch_info_proc_ftype) (struct gdbarch *gdbarch, const char *arg extern void gdbarch_info_proc (struct gdbarch *gdbarch, const char *args, enum info_proc_what what); extern void set_gdbarch_info_proc (struct gdbarch *gdbarch, gdbarch_info_proc_ftype *info_proc); -/* Implement the "info proc" command for core files. Noe that there +/* Implement the "info proc" command for core files. Note that there are two "info_proc"-like methods on gdbarch -- one for core files, one for live targets. */ |