GDB (xrefs)

Functions
/tmp/gdb-8.1/gdb/osabi.h File Reference

Go to the source code of this file.

## Functions
void | gdbarch_register_osabi_sniffer (enum bfd_architecture, enum bfd_flavour, enum gdb_osabi(*)(bfd *))
void | gdbarch_register_osabi (enum bfd_architecture, unsigned long, enum gdb_osabi, void(*)(struct gdbarch_info, struct gdbarch *))
enum gdb_osabi | gdbarch_lookup_osabi (bfd *)
enum gdb_osabi | osabi_from_tdesc_string (const char *text)
void | gdbarch_init_osabi (struct gdbarch_info, struct gdbarch *)
const char * | gdbarch_osabi_name (enum gdb_osabi)
const char * | osabi_triplet_regexp (enum gdb_osabi osabi)
void | generic_elf_osabi_sniff_abi_tag_sections (bfd *, asection *, void *)

## Function Documentation

## ◆ gdbarch_init_osabi()

void gdbarch_init_osabi | ( | struct gdbarch_info | ,
|  | struct gdbarch * |
| ) |  |

Definition at line 334 of file osabi.c.

References gdb_osabi_handler::arch_info, gdbarch_info::bfd_arch_info, can_run_code_for(), gdb_osabi_handler_list, GDB_OSABI_UNKNOWN, gdbarch_osabi_name(), gdb_osabi_handler::init_osabi, gdb_osabi_handler::next, gdb_osabi_handler::osabi, gdbarch_info::osabi, and warning().

Referenced by aarch64_gdbarch_init(), alpha_gdbarch_init(), arc_gdbarch_init(), arm_gdbarch_init(), bfin_gdbarch_init(), cris_gdbarch_init(), frv_gdbarch_init(), ft32_gdbarch_init(), hppa_gdbarch_init(), i386_gdbarch_init(), ia64_gdbarch_init(), iq2000_gdbarch_init(), m32r_gdbarch_init(), m68k_gdbarch_init(), microblaze_gdbarch_init(), mips_gdbarch_init(), mn10300_gdbarch_init(), moxie_gdbarch_init(), nds32_gdbarch_init(), nios2_gdbarch_init(), rs6000_gdbarch_init(), sh64_gdbarch_init(), sh_gdbarch_init(), sparc32_gdbarch_init(), tic6x_gdbarch_init(), tilegx_gdbarch_init(), v850_gdbarch_init(), vax_gdbarch_init(), xstormy16_gdbarch_init(), and xtensa_gdbarch_init().

## ◆ gdbarch_lookup_osabi()

enum gdb_osabi gdbarch_lookup_osabi | ( | bfd * |  | ) |

Definition at line 236 of file osabi.c.

References _, GDB_OSABI_INVALID, gdb_osabi_sniffer_list, GDB_OSABI_UNKNOWN, gdbarch_osabi_name(), internal_error(), osabi_user, gdb_osabi_sniffer::sniffer, user_osabi_state, and user_selected_osabi.

Referenced by gdbarch_info_fill().

## ◆ gdbarch_osabi_name()

const char* gdbarch_osabi_name | ( | enum | gdb_osabi | ) |

Definition at line 87 of file osabi.c.

References GDB_OSABI_INVALID, gdb_osabi_names, GDB_OSABI_UNKNOWN, and osabi_names::pretty.

Referenced by gdbarch_find_by_info(), gdbarch_init_osabi(), gdbarch_lookup_osabi(), gdbarch_register_osabi(), set_osabi(), show_osabi(), and print_c_tdesc::visit_pre().

## ◆ gdbarch_register_osabi()

void gdbarch_register_osabi | ( | enum | bfd_architecture,
|  | unsigned | long,
|  | enum | gdb_osabi,
|  | void(*)(struct gdbarch_info, struct gdbarch *) |
| ) |  |

Definition at line 143 of file osabi.c.

References _, gdb_assert, gdb_osabi_available_names, gdb_osabi_handler_list, GDB_OSABI_UNKNOWN, gdbarch_osabi_name(), internal_error(), gdb_osabi_handler::next, and XNEW.

Referenced by _initialize_aarch64_fbsd_tdep(), _initialize_aarch64_linux_tdep(), _initialize_aarch64_newlib_tdep(), _initialize_alpha_linux_tdep(), _initialize_alphanbsd_tdep(), _initialize_alphaobsd_tdep(), _initialize_amd64_darwin_tdep(), _initialize_amd64_dicos_tdep(), _initialize_amd64_linux_tdep(), _initialize_amd64_sol2_tdep(), _initialize_amd64_windows_tdep(), _initialize_amd64fbsd_tdep(), _initialize_amd64nbsd_tdep(), _initialize_amd64obsd_tdep(), _initialize_arc_newlib_tdep(), _initialize_arm_fbsd_tdep(), _initialize_arm_linux_tdep(), _initialize_arm_netbsd_tdep(), _initialize_arm_symbian_tdep(), _initialize_arm_wince_tdep(), _initialize_armobsd_tdep(), _initialize_bfin_linux_tdep(), _initialize_cris_linux_tdep(), _initialize_frv_linux_tdep(), _initialize_hppa_linux_tdep(), _initialize_hppabsd_tdep(), _initialize_hppanbsd_tdep(), _initialize_i386_cygwin_tdep(), _initialize_i386_darwin_tdep(), _initialize_i386_dicos_tdep(), _initialize_i386_go32_tdep(), _initialize_i386_linux_tdep(), _initialize_i386_sol2_tdep(), _initialize_i386_tdep(), _initialize_i386fbsd_tdep(), _initialize_i386gnu_tdep(), _initialize_i386nbsd_tdep(), _initialize_i386nto_tdep(), _initialize_i386obsd_tdep(), _initialize_ia64_linux_tdep(), _initialize_ia64_vms_tdep(), _initialize_m32r_linux_tdep(), _initialize_m68k_linux_tdep(), _initialize_m68kbsd_tdep(), _initialize_microblaze_linux_tdep(), _initialize_mips64obsd_tdep(), _initialize_mips_fbsd_tdep(), _initialize_mips_linux_tdep(), _initialize_mips_sde_tdep(), _initialize_mipsnbsd_tdep(), _initialize_mn10300_linux_tdep(), _initialize_nios2_linux_tdep(), _initialize_ppc_linux_tdep(), _initialize_ppcfbsd_tdep(), _initialize_ppcnbsd_tdep(), _initialize_ppcobsd_tdep(), _initialize_rs6000_aix_tdep(), _initialize_rs6000_lynx178_tdep(), _initialize_sh_linux_tdep(), _initialize_shnbsd_tdep(), _initialize_sparc32obsd_tdep(), _initialize_sparc64_linux_tdep(), _initialize_sparc64_sol2_tdep(), _initialize_sparc64fbsd_tdep(), _initialize_sparc64nbsd_tdep(), _initialize_sparc64obsd_tdep(), _initialize_sparc_linux_tdep(), _initialize_sparc_sol2_tdep(), _initialize_sparcnbsd_tdep(), _initialize_tic6x_linux_tdep(), _initialize_tilegx_linux_tdep(), _initialize_vaxnbsd_tdep(), and _initialize_xtensa_linux_tdep().

## ◆ gdbarch_register_osabi_sniffer()

void gdbarch_register_osabi_sniffer | ( | enum | bfd_architecture,
|  | enum | bfd_flavour,
|  | enum | gdb_osabi*)(bfd *
| ) |  |

## ◆ generic_elf_osabi_sniff_abi_tag_sections()

void generic_elf_osabi_sniff_abi_tag_sections | ( | bfd * | ,
|  | asection * | ,
|  | void * |
| ) |  |

Definition at line 437 of file osabi.c.

References _, check_note(), GDB_OSABI_FREEBSD, GDB_OSABI_HURD, GDB_OSABI_LINUX, GDB_OSABI_NETBSD, GDB_OSABI_OPENBSD, GDB_OSABI_SOLARIS, MAX_NOTESZ, name, gdb_osabi_handler::osabi, and warning().

Referenced by arm_elf_osabi_sniffer(), generic_elf_osabi_sniffer(), and mips_sde_elf_osabi_sniffer().

## ◆ osabi_from_tdesc_string()

enum gdb_osabi osabi_from_tdesc_string | ( | const char * | text | ) |

Definition at line 110 of file osabi.c.

References GDB_OSABI_INVALID, gdb_osabi_names, GDB_OSABI_UNKNOWN, name, and osabi_names::pretty.

Referenced by initialize_tdesc_mips_dsp_linux(), initialize_tdesc_mips_linux(), initialize_tdesc_sparc32_solaris(), initialize_tdesc_sparc64_solaris(), set_tdesc_osabi(), and tdesc_end_osabi().

## ◆ osabi_triplet_regexp()

const char* osabi_triplet_regexp | ( | enum gdb_osabi | osabi | ) |

Definition at line 98 of file osabi.c.

References GDB_OSABI_INVALID, gdb_osabi_names, GDB_OSABI_UNKNOWN, and osabi_names::regexp.

Referenced by compile_to_object().