GDB (xrefs)
Classes | Macros | Functions | Variables
/tmp/gdb-7.10/gdb/nto-tdep.c File Reference
#include "defs.h"
#include <sys/stat.h>
#include "nto-tdep.h"
#include "top.h"
#include "inferior.h"
#include "infrun.h"
#include "gdbarch.h"
#include "bfd.h"
#include "elf-bfd.h"
#include "solib-svr4.h"
#include "gdbcore.h"
#include "objfiles.h"

Go to the source code of this file.

Classes

struct  lm_info
 

Macros

#define PATH_FMT   "%s/lib:%s/usr/lib:%s/usr/photon/lib:%s/usr/photon/dll:%s/lib/dll"
 

Functions

static char * nto_target (void)
 
int nto_map_arch_to_cputype (const char *arch)
 
int nto_find_and_open_solib (char *solib, unsigned o_flags, char **temp_pathname)
 
void nto_init_solib_absolute_prefix (void)
 
char ** nto_parse_redirection (char *pargv[], const char **pin, const char **pout, const char **perr)
 
static CORE_ADDR lm_addr (struct so_list *so)
 
static CORE_ADDR nto_truncate_ptr (CORE_ADDR addr)
 
static Elf_Internal_Phdr * find_load_phdr (bfd *abfd)
 
void nto_relocate_section_addresses (struct so_list *so, struct target_section *sec)
 
int nto_in_dynsym_resolve_code (CORE_ADDR pc)
 
void nto_dummy_supply_regset (struct regcache *regcache, char *regs)
 
enum gdb_osabi nto_elf_osabi_sniffer (bfd *abfd)
 
char * nto_extra_thread_info (struct target_ops *self, struct thread_info *ti)
 
void nto_initialize_signals (void)
 

Variables

static char default_nto_target [] = ""
 
struct nto_target_ops current_nto_target
 
static const char * nto_thread_state_str []
 

Macro Definition Documentation

#define PATH_FMT   "%s/lib:%s/usr/lib:%s/usr/photon/lib:%s/usr/photon/dll:%s/lib/dll"

Referenced by nto_find_and_open_solib().

Function Documentation

static Elf_Internal_Phdr* find_load_phdr ( bfd *  abfd)
static

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

Referenced by nto_relocate_section_addresses().

static CORE_ADDR lm_addr ( struct so_list so)
static
void nto_dummy_supply_regset ( struct regcache regcache,
char *  regs 
)

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

Referenced by init_i386nto_ops().

enum gdb_osabi nto_elf_osabi_sniffer ( bfd *  abfd)

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

References GDB_OSABI_UNKNOWN, and nto_is_nto_target.

Referenced by _initialize_i386nto_tdep().

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

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

References nto_thread_state_str, thread_info::priv, and private_thread_info::state.

Referenced by init_procfs_targets().

int nto_find_and_open_solib ( char *  solib,
unsigned  o_flags,
char **  temp_pathname 
)
int nto_in_dynsym_resolve_code ( CORE_ADDR  pc)

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

References in_plt_section().

Referenced by i386nto_init_abi().

void nto_init_solib_absolute_prefix ( void  )
void nto_initialize_signals ( void  )
int nto_map_arch_to_cputype ( const char *  arch)

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

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

Referenced by procfs_open_1().

char** nto_parse_redirection ( char *  pargv[],
const char **  pin,
const char **  pout,
const char **  perr 
)

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

References err, and xcalloc().

Referenced by procfs_create_inferior().

void nto_relocate_section_addresses ( struct so_list so,
struct target_section sec 
)
static char* nto_target ( void  )
static

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

References default_nto_target.

Referenced by nto_find_and_open_solib(), and nto_init_solib_absolute_prefix().

static CORE_ADDR nto_truncate_ptr ( CORE_ADDR  addr)
static

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

References gdbarch_ptr_bit(), and target_gdbarch().

Referenced by nto_relocate_section_addresses().

Variable Documentation

struct nto_target_ops current_nto_target

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

char default_nto_target[] = ""
static

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

Referenced by nto_target().

const char* nto_thread_state_str[]
static
Initial value:
=
{
"DEAD",
"RUNNING",
"READY",
"STOPPED",
"SEND",
"RECEIVE",
"REPLY",
"STACK",
"WAITTHREAD",
"WAITPAGE",
"SIGSUSPEND",
"SIGWAITINFO",
"NANOSLEEP",
"MUTEX",
"CONDVAR",
"JOIN",
"INTR",
"SEM",
"WAITCTX",
"NET_SEND",
"NET_REPLY"
}

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

Referenced by nto_extra_thread_info().