GDB (xrefs)
Macros | Functions
/tmp/gdb-7.10/gdb/gdb_bfd.h File Reference
#include "registry.h"

Go to the source code of this file.

Macros

#define TARGET_SYSROOT_PREFIX   "target:"
 

Functions

 DECLARE_REGISTRY (bfd)
 
int is_target_filename (const char *name)
 
int gdb_bfd_has_target_filename (struct bfd *abfd)
 
struct bfd * gdb_bfd_open (const char *name, const char *target, int fd)
 
void gdb_bfd_ref (struct bfd *abfd)
 
void gdb_bfd_unref (struct bfd *abfd)
 
void gdb_bfd_mark_parent (bfd *child, bfd *parent)
 
void gdb_bfd_record_inclusion (bfd *includer, bfd *includee)
 
const gdb_bytegdb_bfd_map_section (asection *section, bfd_size_type *size)
 
int gdb_bfd_crc (struct bfd *abfd, unsigned long *crc_out)
 
bfd * gdb_bfd_fopen (const char *, const char *, const char *, int)
 
bfd * gdb_bfd_openr (const char *, const char *)
 
bfd * gdb_bfd_openw (const char *, const char *)
 
bfd * gdb_bfd_openr_iovec (const char *filename, const char *target, void *(*open_func)(struct bfd *nbfd, void *open_closure), void *open_closure, file_ptr(*pread_func)(struct bfd *nbfd, void *stream, void *buf, file_ptr nbytes, file_ptr offset), int(*close_func)(struct bfd *nbfd, void *stream), int(*stat_func)(struct bfd *abfd, void *stream, struct stat *sb))
 
bfd * gdb_bfd_openr_next_archived_file (bfd *archive, bfd *previous)
 
bfd * gdb_bfd_fdopenr (const char *filename, const char *target, int fd)
 
int gdb_bfd_section_index (bfd *abfd, asection *section)
 
int gdb_bfd_count_sections (bfd *abfd)
 
int gdb_bfd_requires_relocations (bfd *abfd)
 

Macro Definition Documentation

#define TARGET_SYSROOT_PREFIX   "target:"

Function Documentation

DECLARE_REGISTRY ( bfd  )
int gdb_bfd_count_sections ( bfd *  abfd)
int gdb_bfd_crc ( struct bfd *  abfd,
unsigned long *  crc_out 
)

Definition at line 658 of file gdb_bfd.c.

References gdb_bfd_data::crc, gdb_bfd_data::crc_computed, and get_file_crc().

Referenced by separate_debug_file_exists().

bfd* gdb_bfd_fdopenr ( const char *  filename,
const char *  target,
int  fd 
)

Definition at line 789 of file gdb_bfd.c.

References gdb_bfd_ref().

bfd* gdb_bfd_fopen ( const char *  ,
const char *  ,
const char *  ,
int   
)

Definition at line 675 of file gdb_bfd.c.

References gdb_bfd_ref().

Referenced by core_open(), and exec_file_attach().

int gdb_bfd_has_target_filename ( struct bfd *  abfd)

Definition at line 153 of file gdb_bfd.c.

References is_target_filename().

Referenced by solib_bfd_fopen(), and symfile_bfd_open().

const gdb_byte* gdb_bfd_map_section ( asection *  section,
bfd_size_type *  size 
)
void gdb_bfd_mark_parent ( bfd *  child,
bfd *  parent 
)
struct bfd* gdb_bfd_open ( const char *  name,
const char *  target,
int  fd 
)
bfd* gdb_bfd_openr ( const char *  ,
const char *   
)

Definition at line 689 of file gdb_bfd.c.

References gdb_bfd_ref().

Referenced by bfd_openr_with_cleanup(), and macho_check_dsym().

bfd* gdb_bfd_openr_iovec ( const char *  filename,
const char *  target,
void *(*)(struct bfd *nbfd, void *open_closure)  open_func,
void *  open_closure,
file_ptr(*)(struct bfd *nbfd, void *stream, void *buf, file_ptr nbytes, file_ptr offset pread_func,
int(*)(struct bfd *nbfd, void *stream)  close_func,
int(*)(struct bfd *abfd, void *stream, struct stat *sb)  stat_func 
)
bfd* gdb_bfd_openr_next_archived_file ( bfd *  archive,
bfd *  previous 
)

Definition at line 764 of file gdb_bfd.c.

References gdb_bfd_mark_parent().

Referenced by macho_symfile_read_all_oso(), and solib_aix_bfd_open().

bfd* gdb_bfd_openw ( const char *  ,
const char *   
)

Definition at line 702 of file gdb_bfd.c.

References gdb_bfd_ref().

Referenced by bfd_openw_with_cleanup(), and create_gcore_bfd().

void gdb_bfd_record_inclusion ( bfd *  includer,
bfd *  includee 
)

Definition at line 777 of file gdb_bfd.c.

References gdb_bfd_ref(), and VEC_safe_push.

Referenced by dwarf2_get_dwz_file(), and try_open_dwop_file().

void gdb_bfd_ref ( struct bfd *  abfd)
int gdb_bfd_requires_relocations ( bfd *  abfd)

Definition at line 832 of file gdb_bfd.c.

References gdb_bfd_data::needs_relocations, and gdb_bfd_data::relocation_computed.

Referenced by get_objfile_bfd_data().

int gdb_bfd_section_index ( bfd *  abfd,
asection *  section 
)
void gdb_bfd_unref ( struct bfd *  abfd)
int is_target_filename ( const char *  name)