GDB (xrefs)
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions | Variables
nto-tdep.h File Reference
#include "solist.h"
#include "osabi.h"
#include "regset.h"
#include "gdbthread.h"
#include "gdbsupport/gdb-checked-static-cast.h"

Go to the source code of this file.

Classes

struct  nto_target_ops
 
struct  _debug_regs
 
struct  nto_thread_info
 
struct  nto_inferior_data
 

Macros

#define nto_cpuinfo_flags   (current_nto_target.cpuinfo_flags)
 
#define nto_cpuinfo_valid   (current_nto_target.cpuinfo_valid)
 
#define nto_regset_id   (current_nto_target.regset_id)
 
#define nto_supply_gregset   (current_nto_target.supply_gregset)
 
#define nto_supply_fpregset   (current_nto_target.supply_fpregset)
 
#define nto_supply_altregset   (current_nto_target.supply_altregset)
 
#define nto_supply_regset   (current_nto_target.supply_regset)
 
#define nto_register_area   (current_nto_target.register_area)
 
#define nto_regset_fill   (current_nto_target.regset_fill)
 
#define nto_fetch_link_map_offsets   (current_nto_target.fetch_link_map_offsets)
 
#define nto_is_nto_target   (current_nto_target.is_nto_target)
 

Typedefs

typedef char qnx_reg64[8]
 
typedef struct _debug_regs nto_regset_t
 

Enumerations

enum  {
  CPUTYPE_X86 , CPUTYPE_PPC , CPUTYPE_MIPS , CPUTYPE_SPARE ,
  CPUTYPE_ARM , CPUTYPE_SH , CPUTYPE_UNKNOWN
}
 
enum  { OSTYPE_QNX4 , OSTYPE_NTO }
 
enum  {
  NTO_REG_GENERAL , NTO_REG_FLOAT , NTO_REG_SYSTEM , NTO_REG_ALT ,
  NTO_REG_END
}
 

Functions

static nto_thread_infoget_nto_thread_info (thread_info *thread)
 
void nto_init_solib_absolute_prefix (void)
 
char ** nto_parse_redirection (char *start_argv[], const char **in, const char **out, const char **err)
 
void nto_relocate_section_addresses (struct so_list *, struct target_section *)
 
int nto_map_arch_to_cputype (const char *)
 
int nto_find_and_open_solib (const char *, unsigned, gdb::unique_xmalloc_ptr< char > *)
 
enum gdb_osabi nto_elf_osabi_sniffer (bfd *abfd)
 
void nto_initialize_signals (void)
 
void nto_dummy_supply_regset (struct regcache *regcache, char *regs)
 
int nto_in_dynsym_resolve_code (CORE_ADDR pc)
 
const char * nto_extra_thread_info (struct target_ops *self, struct thread_info *)
 
LONGEST nto_read_auxv_from_initial_stack (CORE_ADDR initial_stack, gdb_byte *readbuf, LONGEST len, size_t sizeof_auxv_t)
 
struct nto_inferior_data * nto_inferior_data (struct inferior *inf)
 

Variables

struct nto_target_ops current_nto_target
 

Macro Definition Documentation

◆ nto_cpuinfo_flags

#define nto_cpuinfo_flags   (current_nto_target.cpuinfo_flags)

◆ nto_cpuinfo_valid

#define nto_cpuinfo_valid   (current_nto_target.cpuinfo_valid)

◆ nto_fetch_link_map_offsets

#define nto_fetch_link_map_offsets   (current_nto_target.fetch_link_map_offsets)

Definition at line 98 of file nto-tdep.h.

Referenced by init_i386nto_ops().

◆ nto_is_nto_target

#define nto_is_nto_target   (current_nto_target.is_nto_target)

Definition at line 101 of file nto-tdep.h.

Referenced by _initialize_procfs(), and nto_procfs_target::open().

◆ nto_register_area

#define nto_register_area   (current_nto_target.register_area)

Definition at line 94 of file nto-tdep.h.

Referenced by init_i386nto_ops(), and nto_procfs_target::store_registers().

◆ nto_regset_fill

#define nto_regset_fill   (current_nto_target.regset_fill)

Definition at line 96 of file nto-tdep.h.

Referenced by init_i386nto_ops(), and nto_procfs_target::store_registers().

◆ nto_regset_id

#define nto_regset_id   (current_nto_target.regset_id)

Definition at line 84 of file nto-tdep.h.

Referenced by init_i386nto_ops(), and nto_procfs_target::store_registers().

◆ nto_supply_altregset

#define nto_supply_altregset   (current_nto_target.supply_altregset)

Definition at line 90 of file nto-tdep.h.

Referenced by nto_procfs_target::fetch_registers(), and init_i386nto_ops().

◆ nto_supply_fpregset

#define nto_supply_fpregset   (current_nto_target.supply_fpregset)

Definition at line 88 of file nto-tdep.h.

Referenced by nto_procfs_target::fetch_registers(), and init_i386nto_ops().

◆ nto_supply_gregset

#define nto_supply_gregset   (current_nto_target.supply_gregset)

Definition at line 86 of file nto-tdep.h.

Referenced by nto_procfs_target::fetch_registers(), and init_i386nto_ops().

◆ nto_supply_regset

#define nto_supply_regset   (current_nto_target.supply_regset)

Definition at line 92 of file nto-tdep.h.

Referenced by init_i386nto_ops().

Typedef Documentation

◆ nto_regset_t

typedef struct _debug_regs nto_regset_t

◆ qnx_reg64

typedef char qnx_reg64[8]

Definition at line 131 of file nto-tdep.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
CPUTYPE_X86 
CPUTYPE_PPC 
CPUTYPE_MIPS 
CPUTYPE_SPARE 
CPUTYPE_ARM 
CPUTYPE_SH 
CPUTYPE_UNKNOWN 

Definition at line 104 of file nto-tdep.h.

◆ anonymous enum

anonymous enum
Enumerator
OSTYPE_QNX4 
OSTYPE_NTO 

Definition at line 115 of file nto-tdep.h.

◆ anonymous enum

anonymous enum
Enumerator
NTO_REG_GENERAL 
NTO_REG_FLOAT 
NTO_REG_SYSTEM 
NTO_REG_ALT 
NTO_REG_END 

Definition at line 122 of file nto-tdep.h.

Function Documentation

◆ get_nto_thread_info()

static nto_thread_info * get_nto_thread_info ( thread_info * thread)
inlinestatic

◆ nto_dummy_supply_regset()

void nto_dummy_supply_regset ( struct regcache * regcache,
char * regs )

Definition at line 306 of file nto-tdep.c.

Referenced by init_i386nto_ops().

◆ nto_elf_osabi_sniffer()

enum gdb_osabi nto_elf_osabi_sniffer ( bfd * abfd)

Definition at line 347 of file nto-tdep.c.

References GDB_OSABI_UNKNOWN, and nto_sniff_abi_note_section().

Referenced by _initialize_i386nto_tdep().

◆ nto_extra_thread_info()

const char * nto_extra_thread_info ( struct target_ops * self,
struct thread_info * ti )

◆ nto_find_and_open_solib()

int nto_find_and_open_solib ( const char * solib,
unsigned o_flags,
gdb::unique_xmalloc_ptr< char > * temp_pathname )

◆ nto_in_dynsym_resolve_code()

int nto_in_dynsym_resolve_code ( CORE_ADDR pc)

Definition at line 298 of file nto-tdep.c.

References in_plt_section().

Referenced by i386nto_init_abi().

◆ nto_inferior_data()

struct nto_inferior_data * nto_inferior_data ( struct inferior * inf)

◆ nto_init_solib_absolute_prefix()

void nto_init_solib_absolute_prefix ( void )

◆ nto_initialize_signals()

void nto_initialize_signals ( void )

Definition at line 397 of file nto-tdep.c.

References signal_pass_update(), signal_print_update(), and signal_stop_update().

Referenced by i386nto_init_abi().

◆ nto_map_arch_to_cputype()

int nto_map_arch_to_cputype ( const char * arch)

Definition at line 77 of file nto-tdep.c.

References CPUTYPE_ARM, CPUTYPE_MIPS, CPUTYPE_PPC, CPUTYPE_SH, CPUTYPE_UNKNOWN, and CPUTYPE_X86.

Referenced by nto_procfs_target::open().

◆ nto_parse_redirection()

char ** nto_parse_redirection ( char * start_argv[],
const char ** in,
const char ** out,
const char ** err )

Definition at line 192 of file nto-tdep.c.

References err, and pin.

Referenced by nto_procfs_target::create_inferior().

◆ nto_read_auxv_from_initial_stack()

LONGEST nto_read_auxv_from_initial_stack ( CORE_ADDR initial_stack,
gdb_byte * readbuf,
LONGEST len,
size_t sizeof_auxv_t )

◆ nto_relocate_section_addresses()

void nto_relocate_section_addresses ( struct so_list * so,
struct target_section * sec )

Variable Documentation

◆ current_nto_target

struct nto_target_ops current_nto_target
extern

Definition at line 52 of file nto-tdep.c.