diff options
author | Tom Tromey <tromey@redhat.com> | 2013-03-14 20:26:19 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-03-14 20:26:19 +0000 |
commit | dccee2de163c22e9610e9103814d4b93768dd6aa (patch) | |
tree | 9ec350d17410647e56d95dd2da419d194e444cd1 /gdb/gdb_bfd.h | |
parent | cc0ea93c7531fe59c4d7d2b01b01acb9bbe0b7fd (diff) | |
download | gdb-dccee2de163c22e9610e9103814d4b93768dd6aa.zip gdb-dccee2de163c22e9610e9103814d4b93768dd6aa.tar.gz gdb-dccee2de163c22e9610e9103814d4b93768dd6aa.tar.bz2 |
* 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.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |