summaryrefslogtreecommitdiff
path: root/gdb/gdb_bfd.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-03-14 20:26:19 +0000
committerTom Tromey <tromey@redhat.com>2013-03-14 20:26:19 +0000
commit33a4b168bf0f3ea93d8b756a3850ef748e8974ab (patch)
tree4e05feff17f238eaf3e9f3bb8cbd93ff64a0e782 /gdb/gdb_bfd.h
parent7e99d8462381c0ce61012a9755bb3d50c1666187 (diff)
downloadgdb-33a4b168bf0f3ea93d8b756a3850ef748e8974ab.tar.gz
* gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
New fields. (get_file_crc): Move from symfile.c. (gdb_bfd_crc): New function. * gdb_bfd.h (gdb_bfd_crc): Declare. * objfiles.h (struct objfile) <crc32, crc32_p>: Remove. * symfile.c (get_file_crc): Move to gdb_bfd.c. (separate_debug_file_exists): Use gdb_bfd_crc.
Diffstat (limited to 'gdb/gdb_bfd.h')
-rw-r--r--gdb/gdb_bfd.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h
index f3ee9ff4d65..1e74bfe608d 100644
--- a/gdb/gdb_bfd.h
+++ b/gdb/gdb_bfd.h
@@ -70,6 +70,12 @@ void gdb_bfd_mark_parent (bfd *child, bfd *parent);
const gdb_byte *gdb_bfd_map_section (asection *section, bfd_size_type *size);
+/* Compute the CRC for ABFD. The CRC is used to find and verify
+ separate debug files. When successful, this fills in *CRC_OUT and
+ returns 1. Otherwise, this issues a warning and returns 0. */
+
+int gdb_bfd_crc (struct bfd *abfd, unsigned long *crc_out);
+
/* A wrapper for bfd_fopen that initializes the gdb-specific reference