#ifndef _NTO_TDEP_H
#define _NTO_TDEP_H
#include "defs.h"
#include "solist.h"
extern void nto_init_solib_absolute_prefix (void);
char **nto_parse_redirection (char *start_argv[], char **in,
char **out, char **err);
int proc_iterate_over_mappings (int (*func) (int, CORE_ADDR));
void nto_relocate_section_addresses (struct so_list *, struct section_table *);
int nto_map_arch_to_cputype (const char *);
int nto_find_and_open_solib (char *, unsigned, char **);
void nto_dummy_supply_regset (char *regs);
struct nto_target_ops
{
int nto_internal_debugging;
unsigned nto_cpuinfo_flags;
int nto_cpuinfo_valid;
int (*nto_regset_id) (int);
void (*nto_supply_gregset) (char *);
void (*nto_supply_fpregset) (char *);
void (*nto_supply_altregset) (char *);
void (*nto_supply_regset) (int, char *);
int (*nto_register_area) (int, int, unsigned *);
int (*nto_regset_fill) (int, char *);
struct link_map_offsets *(*nto_fetch_link_map_offsets) (void);
};
extern struct nto_target_ops current_nto_target;
#define nto_internal_debugging \
(current_nto_target.nto_internal_debugging)
#define nto_cpuinfo_flags \
(current_nto_target.nto_cpuinfo_flags)
#define nto_cpuinfo_valid \
(current_nto_target.nto_cpuinfo_valid)
#define nto_regset_id(reg) \
(*current_nto_target.nto_regset_id) (reg)
#define nto_supply_gregset(regs) \
(*current_nto_target.nto_supply_gregset) (regs)
#define nto_supply_fpregset(regs) \
(*current_nto_target.nto_supply_fpregset) (regs)
#define nto_supply_altregset(regs) \
(*current_nto_target.nto_supply_altregset) (regs)
#define nto_supply_regset(regset, data) \
(*current_nto_target.nto_supply_regset) (regset, data)
#define nto_register_area(reg, regset, off) \
(*current_nto_target.nto_register_area) (reg, regset, off)
#define nto_regset_fill(regset, data) \
(*current_nto_target.nto_regset_fill) (regset, data)
#define nto_fetch_link_map_offsets() \
(*current_nto_target.nto_fetch_link_map_offsets) ()
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
};
typedef char qnx_reg64[8];
typedef struct _debug_regs
{
qnx_reg64 padding[1024];
} nto_regset_t;
#endif