From dccee2de163c22e9610e9103814d4b93768dd6aa Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 14 Mar 2013 20:26:19 +0000 Subject: * gdb_bfd.c (struct gdb_bfd_data) : 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) : Remove. * symfile.c (get_file_crc): Move to gdb_bfd.c. (separate_debug_file_exists): Use gdb_bfd_crc. --- gdb/gdb_bfd.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/gdb_bfd.h') diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h index f3ee9ff..1e74bfe 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 -- cgit v1.1