GDB (API)
Defines | Typedefs | Functions | Variables
/home/stan/gdb/src/gdb/target-descriptions.c File Reference
#include "defs.h"
#include "arch-utils.h"
#include "gdbcmd.h"
#include "gdbtypes.h"
#include "reggroups.h"
#include "target.h"
#include "target-descriptions.h"
#include "vec.h"
#include "xml-support.h"
#include "xml-tdesc.h"
#include "osabi.h"
#include "gdb_assert.h"
#include "gdb_obstack.h"
#include "hashtab.h"
#include "inferior.h"

Go to the source code of this file.

Defines

#define target_desc_fetched   get_tdesc_info (current_inferior ())->fetched
#define current_target_desc   get_tdesc_info (current_inferior ())->tdesc
#define target_description_filename   get_tdesc_info (current_inferior ())->filename

Typedefs

typedef struct property property_s
typedef struct tdesc_reg * tdesc_reg_p
typedef struct tdesc_type_field tdesc_type_field
typedef struct tdesc_type_flag tdesc_type_flag
typedef struct tdesc_type * tdesc_type_p
typedef struct tdesc_feature * tdesc_feature_p
typedef struct bfd_arch_info * arch_p
typedef struct tdesc_arch_reg tdesc_arch_reg

Functions

 DEF_VEC_O (property_s)
 DEF_VEC_P (tdesc_reg_p)
 DEF_VEC_O (tdesc_type_field)
 DEF_VEC_O (tdesc_type_flag)
 DEF_VEC_P (tdesc_type_p)
 DEF_VEC_P (tdesc_feature_p)
 DEF_VEC_P (arch_p)
 DEF_VEC_O (tdesc_arch_reg)
int target_desc_info_from_user_p (struct target_desc_info *info)
void copy_inferior_target_desc_info (struct inferior *destinf, struct inferior *srcinf)
void target_desc_info_free (struct target_desc_info *tdesc_info)
void target_find_description (void)
void target_clear_description (void)
struct target_desc * target_current_description (void)
int tdesc_compatible_p (const struct target_desc *target_desc, const struct bfd_arch_info *arch)
const char * tdesc_property (const struct target_desc *target_desc, const char *key)
struct bfd_arch_info * tdesc_architecture (const struct target_desc *target_desc)
enum gdb_osabi tdesc_osabi (const struct target_desc *target_desc)
int tdesc_has_registers (const struct target_desc *target_desc)
struct tdesc_feature * tdesc_find_feature (const struct target_desc *target_desc, const char *name)
const char * tdesc_feature_name (const struct tdesc_feature *feature)
struct tdesc_type * tdesc_named_type (const struct tdesc_feature *feature, const char *id)
struct typetdesc_find_type (struct gdbarch *gdbarch, const char *id)
struct tdesc_arch_data * tdesc_data_alloc (void)
void tdesc_data_cleanup (void *data_untyped)
int tdesc_numbered_register (const struct tdesc_feature *feature, struct tdesc_arch_data *data, int regno, const char *name)
int tdesc_unnumbered_register (const struct tdesc_feature *feature, const char *name)
int tdesc_numbered_register_choices (const struct tdesc_feature *feature, struct tdesc_arch_data *data, int regno, const char *const names[])
int tdesc_register_size (const struct tdesc_feature *feature, const char *name)
const char * tdesc_register_name (struct gdbarch *gdbarch, int regno)
struct typetdesc_register_type (struct gdbarch *gdbarch, int regno)
int tdesc_register_in_reggroup_p (struct gdbarch *gdbarch, int regno, struct reggroup *reggroup)
void set_tdesc_pseudo_register_name (struct gdbarch *gdbarch, gdbarch_register_name_ftype *pseudo_name)
void set_tdesc_pseudo_register_type (struct gdbarch *gdbarch, gdbarch_register_type_ftype *pseudo_type)
void set_tdesc_pseudo_register_reggroup_p (struct gdbarch *gdbarch, gdbarch_register_reggroup_p_ftype *pseudo_reggroup_p)
void tdesc_use_registers (struct gdbarch *gdbarch, const struct target_desc *target_desc, struct tdesc_arch_data *early_data)
void tdesc_create_reg (struct tdesc_feature *feature, const char *name, int regnum, int save_restore, const char *group, int bitsize, const char *type)
struct tdesc_type * tdesc_create_vector (struct tdesc_feature *feature, const char *name, struct tdesc_type *field_type, int count)
struct tdesc_type * tdesc_create_struct (struct tdesc_feature *feature, const char *name)
void tdesc_set_struct_size (struct tdesc_type *type, LONGEST size)
struct tdesc_type * tdesc_create_union (struct tdesc_feature *feature, const char *name)
struct tdesc_type * tdesc_create_flags (struct tdesc_feature *feature, const char *name, LONGEST size)
void tdesc_add_field (struct tdesc_type *type, const char *field_name, struct tdesc_type *field_type)
void tdesc_add_bitfield (struct tdesc_type *type, const char *field_name, int start, int end)
void tdesc_add_flag (struct tdesc_type *type, int start, const char *flag_name)
struct tdesc_feature * tdesc_create_feature (struct target_desc *tdesc, const char *name)
struct target_desc * allocate_target_description (void)
struct cleanup * make_cleanup_free_target_description (struct target_desc *target_desc)
void tdesc_add_compatible (struct target_desc *target_desc, const struct bfd_arch_info *compatible)
void set_tdesc_property (struct target_desc *target_desc, const char *key, const char *value)
void set_tdesc_architecture (struct target_desc *target_desc, const struct bfd_arch_info *arch)
void set_tdesc_osabi (struct target_desc *target_desc, enum gdb_osabi osabi)
void _initialize_target_descriptions (void)

Variables

initialize_file_ftype _initialize_target_descriptions

Define Documentation

#define current_target_desc   get_tdesc_info (current_inferior ())->tdesc

Definition at line 312 of file target-descriptions.c.

#define target_desc_fetched   get_tdesc_info (current_inferior ())->fetched

Definition at line 310 of file target-descriptions.c.

#define target_description_filename   get_tdesc_info (current_inferior ())->filename

Definition at line 314 of file target-descriptions.c.


Typedef Documentation

typedef struct bfd_arch_info* arch_p

Definition at line 183 of file target-descriptions.c.

typedef struct property property_s
typedef struct tdesc_feature * tdesc_feature_p
typedef struct tdesc_reg * tdesc_reg_p
typedef struct tdesc_type * tdesc_type_p

Function Documentation

Definition at line 1838 of file target-descriptions.c.

struct target_desc* allocate_target_description ( void  ) [read]

Definition at line 1448 of file target-descriptions.c.

void copy_inferior_target_desc_info ( struct inferior destinf,
struct inferior srcinf 
)

Definition at line 286 of file target-descriptions.c.

struct cleanup* make_cleanup_free_target_description ( struct target_desc *  target_desc) [read]

Definition at line 1482 of file target-descriptions.c.

void set_tdesc_architecture ( struct target_desc *  target_desc,
const struct bfd_arch_info *  arch 
)

Definition at line 1532 of file target-descriptions.c.

void set_tdesc_osabi ( struct target_desc *  target_desc,
enum gdb_osabi  osabi 
)

Definition at line 1539 of file target-descriptions.c.

void set_tdesc_property ( struct target_desc *  target_desc,
const char *  key,
const char *  value 
)

Definition at line 1512 of file target-descriptions.c.

void set_tdesc_pseudo_register_name ( struct gdbarch *  gdbarch,
gdbarch_register_name_ftype pseudo_name 
)

Definition at line 1120 of file target-descriptions.c.

void set_tdesc_pseudo_register_reggroup_p ( struct gdbarch *  gdbarch,
gdbarch_register_reggroup_p_ftype pseudo_reggroup_p 
)

Definition at line 1139 of file target-descriptions.c.

void set_tdesc_pseudo_register_type ( struct gdbarch *  gdbarch,
gdbarch_register_type_ftype pseudo_type 
)

Definition at line 1129 of file target-descriptions.c.

void target_clear_description ( void  )

Definition at line 387 of file target-descriptions.c.

struct target_desc* target_current_description ( void  ) [read]

Definition at line 408 of file target-descriptions.c.

void target_desc_info_free ( struct target_desc_info *  tdesc_info)

Definition at line 299 of file target-descriptions.c.

int target_desc_info_from_user_p ( struct target_desc_info *  info)

Definition at line 278 of file target-descriptions.c.

void target_find_description ( void  )

Definition at line 325 of file target-descriptions.c.

void tdesc_add_bitfield ( struct tdesc_type *  type,
const char *  field_name,
int  start,
int  end 
)

Definition at line 1389 of file target-descriptions.c.

void tdesc_add_compatible ( struct target_desc *  target_desc,
const struct bfd_arch_info *  compatible 
)

Definition at line 1488 of file target-descriptions.c.

void tdesc_add_field ( struct tdesc_type *  type,
const char *  field_name,
struct tdesc_type *  field_type 
)

Definition at line 1372 of file target-descriptions.c.

void tdesc_add_flag ( struct tdesc_type *  type,
int  start,
const char *  flag_name 
)

Definition at line 1404 of file target-descriptions.c.

struct bfd_arch_info* tdesc_architecture ( const struct target_desc *  target_desc) [read]

Definition at line 462 of file target-descriptions.c.

int tdesc_compatible_p ( const struct target_desc *  target_desc,
const struct bfd_arch_info *  arch 
)

Definition at line 420 of file target-descriptions.c.

struct tdesc_feature* tdesc_create_feature ( struct target_desc *  tdesc,
const char *  name 
) [read]

Definition at line 1437 of file target-descriptions.c.

struct tdesc_type* tdesc_create_flags ( struct tdesc_feature *  feature,
const char *  name,
LONGEST  size 
) [read]

Definition at line 1354 of file target-descriptions.c.

void tdesc_create_reg ( struct tdesc_feature *  feature,
const char *  name,
int  regnum,
int  save_restore,
const char *  group,
int  bitsize,
const char *  type 
)

Definition at line 1241 of file target-descriptions.c.

struct tdesc_type* tdesc_create_struct ( struct tdesc_feature *  feature,
const char *  name 
) [read]

Definition at line 1319 of file target-descriptions.c.

struct tdesc_type* tdesc_create_union ( struct tdesc_feature *  feature,
const char *  name 
) [read]

Definition at line 1342 of file target-descriptions.c.

struct tdesc_type* tdesc_create_vector ( struct tdesc_feature *  feature,
const char *  name,
struct tdesc_type *  field_type,
int  count 
) [read]

Definition at line 1304 of file target-descriptions.c.

struct tdesc_arch_data* tdesc_data_alloc ( void  ) [read]

Definition at line 805 of file target-descriptions.c.

void tdesc_data_cleanup ( void *  data_untyped)

Definition at line 815 of file target-descriptions.c.

const char* tdesc_feature_name ( const struct tdesc_feature *  feature)

Definition at line 520 of file target-descriptions.c.

struct tdesc_feature* tdesc_find_feature ( const struct target_desc *  target_desc,
const char *  name 
) [read]

Definition at line 502 of file target-descriptions.c.

struct type* tdesc_find_type ( struct gdbarch *  gdbarch,
const char *  id 
) [read]

Definition at line 571 of file target-descriptions.c.

int tdesc_has_registers ( const struct target_desc *  target_desc)

Definition at line 481 of file target-descriptions.c.

struct tdesc_type* tdesc_named_type ( const struct tdesc_feature *  feature,
const char *  id 
) [read]

Definition at line 550 of file target-descriptions.c.

int tdesc_numbered_register ( const struct tdesc_feature *  feature,
struct tdesc_arch_data *  data,
int  regno,
const char *  name 
)

Definition at line 844 of file target-descriptions.c.

int tdesc_numbered_register_choices ( const struct tdesc_feature *  feature,
struct tdesc_arch_data *  data,
int  regno,
const char *const  names[] 
)

Definition at line 882 of file target-descriptions.c.

enum gdb_osabi tdesc_osabi ( const struct target_desc *  target_desc)

Definition at line 471 of file target-descriptions.c.

const char* tdesc_property ( const struct target_desc *  target_desc,
const char *  key 
)

Definition at line 445 of file target-descriptions.c.

int tdesc_register_in_reggroup_p ( struct gdbarch *  gdbarch,
int  regno,
struct reggroup *  reggroup 
)

Definition at line 1055 of file target-descriptions.c.

const char* tdesc_register_name ( struct gdbarch *  gdbarch,
int  regno 
)

Definition at line 934 of file target-descriptions.c.

int tdesc_register_size ( const struct tdesc_feature *  feature,
const char *  name 
)

Definition at line 899 of file target-descriptions.c.

struct type* tdesc_register_type ( struct gdbarch *  gdbarch,
int  regno 
) [read]

Definition at line 955 of file target-descriptions.c.

void tdesc_set_struct_size ( struct tdesc_type *  type,
LONGEST  size 
)

Definition at line 1335 of file target-descriptions.c.

int tdesc_unnumbered_register ( const struct tdesc_feature *  feature,
const char *  name 
)

Definition at line 867 of file target-descriptions.c.

void tdesc_use_registers ( struct gdbarch *  gdbarch,
const struct target_desc *  target_desc,
struct tdesc_arch_data *  early_data 
)

Definition at line 1150 of file target-descriptions.c.


Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines