X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fnto-tdep.h;h=aa965c5c4ae416106722ce4e7cf4e0b12f2fea73;hb=2117c711ae07700adb57ea5b5ca61e4c32d7e3d2;hp=30be3c54857951890b15687f22c28c70e014d95b;hpb=14ef7606b7caabbde8afd1e7a8b54eeb8c26e555;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h index 30be3c5485..aa965c5c4a 100644 --- a/gdb/nto-tdep.h +++ b/gdb/nto-tdep.h @@ -1,6 +1,6 @@ /* nto-tdep.h - QNX Neutrino target header. - Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2003-2014 Free Software Foundation, Inc. Contributed by QNX Software Systems Ltd. @@ -25,14 +25,12 @@ #include "solist.h" #include "osabi.h" #include "regset.h" +#include "gdbthread.h" /* Target operations defined for Neutrino targets (-nto-tdep.c). */ struct nto_target_ops { -/* For 'maintenance debug nto-debug' command. */ - int internal_debugging; - /* The CPUINFO flags from the remote. Currently used by i386 for fxsave but future proofing other hosts. This is initialized in procfs_attach or nto_start_remote @@ -61,9 +59,9 @@ struct nto_target_ops and stuff it into the last argument. If regno is -1, calculate the size of the entire regset. Returns length of data, -1 if unknown regset, 0 if unknown register. */ - int (*register_area) (int, int, unsigned *); + int (*register_area) (struct gdbarch *, int, int, unsigned *); -/* Build the Neutrino register set info into the data buffer. +/* Build the Neutrino register set info into the data buffer. Return -1 if unknown regset, 0 otherwise. */ int (*regset_fill) (const struct regcache *, int, char *); @@ -78,8 +76,6 @@ struct nto_target_ops extern struct nto_target_ops current_nto_target; -#define nto_internal_debugging (current_nto_target.internal_debugging) - #define nto_cpuinfo_flags (current_nto_target.cpuinfo_flags) #define nto_cpuinfo_valid (current_nto_target.cpuinfo_valid) @@ -121,7 +117,7 @@ enum OSTYPE_NTO }; -/* These correspond to the DSMSG_* versions in dsmsgs.h. */ +/* These correspond to the DSMSG_* versions in dsmsgs.h. */ enum { NTO_REG_GENERAL, @@ -138,19 +134,23 @@ typedef struct _debug_regs qnx_reg64 padding[1024]; } nto_regset_t; +struct private_thread_info +{ + short tid; + unsigned char state; + unsigned char flags; + char name[1]; +}; + /* Generic functions in nto-tdep.c. */ void nto_init_solib_absolute_prefix (void); -void nto_set_target(struct nto_target_ops *); - char **nto_parse_redirection (char *start_argv[], const char **in, const char **out, const char **err); -int proc_iterate_over_mappings (int (*func) (int, CORE_ADDR)); - void nto_relocate_section_addresses (struct so_list *, - struct section_table *); + struct target_section *); int nto_map_arch_to_cputype (const char *); @@ -160,19 +160,12 @@ enum gdb_osabi nto_elf_osabi_sniffer (bfd *abfd); void nto_initialize_signals (void); -void nto_generic_supply_gpregset (const struct regset *, struct regcache *, - int, const void *, size_t); - -void nto_generic_supply_fpregset (const struct regset *, struct regcache *, - int, const void *, size_t); - -void nto_generic_supply_altregset (const struct regset *, struct regcache *, - int, const void *, size_t); - /* Dummy function for initializing nto_target_ops on targets which do not define a particular regset. */ void nto_dummy_supply_regset (struct regcache *regcache, char *regs); int nto_in_dynsym_resolve_code (CORE_ADDR pc); +char *nto_extra_thread_info (struct target_ops *self, struct thread_info *); + #endif