* 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.
This commit is contained in:
Tom Tromey
2013-03-14 20:26:19 +00:00
parent cc0ea93c75
commit dccee2de16
5 changed files with 81 additions and 48 deletions

View File

@@ -259,11 +259,6 @@ struct objfile
long mtime;
/* Cached 32-bit CRC as computed by gnu_debuglink_crc32. CRC32 is valid
iff CRC32_P. */
unsigned long crc32;
int crc32_p;
/* Obstack to hold objects that should be freed when we load a new symbol
table from this object file. */