aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_bfd.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdb_bfd.h')
-rw-r--r--gdb/gdb_bfd.h40
1 files changed, 11 insertions, 29 deletions
diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h
index d15b110..b26c9c7 100644
--- a/gdb/gdb_bfd.h
+++ b/gdb/gdb_bfd.h
@@ -63,15 +63,9 @@ void gdb_bfd_unref (struct bfd *abfd);
/* A policy class for gdb::ref_ptr for BFD reference counting. */
struct gdb_bfd_ref_policy
{
- static void incref (struct bfd *abfd)
- {
- gdb_bfd_ref (abfd);
- }
-
- static void decref (struct bfd *abfd)
- {
- gdb_bfd_unref (abfd);
- }
+ static void incref (struct bfd *abfd) { gdb_bfd_ref (abfd); }
+
+ static void decref (struct bfd *abfd) { gdb_bfd_unref (abfd); }
};
/* A gdb::ref_ptr that has been specialized for BFD objects. */
@@ -133,8 +127,6 @@ const gdb_byte *gdb_bfd_map_section (asection *section, bfd_size_type *size);
int gdb_bfd_crc (struct bfd *abfd, unsigned long *crc_out);
-
-
/* A wrapper for bfd_fopen that initializes the gdb-specific reference
count. */
@@ -153,36 +145,26 @@ gdb_bfd_ref_ptr gdb_bfd_openw (const char *, const char *);
/* A wrapper for bfd_openr_iovec that initializes the gdb-specific
reference count. */
-gdb_bfd_ref_ptr 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));
+gdb_bfd_ref_ptr 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));
/* A wrapper for bfd_openr_next_archived_file that initializes the
gdb-specific reference count. */
gdb_bfd_ref_ptr gdb_bfd_openr_next_archived_file (bfd *archive, bfd *previous);
-
-
-
/* Return the index of the BFD section SECTION. Ordinarily this is
just the section's index, but for some special sections, like
bfd_com_section_ptr, it will be a synthesized value. */
int gdb_bfd_section_index (bfd *abfd, asection *section);
-
/* Like bfd_count_sections, but include any possible global sections,
like bfd_com_section_ptr. */