Fix separate debuginfo warning with "remote:" access.
	* objfiles.h (struct objfile): New fields crc32 and crc32_p.
	* symfile.c (get_file_crc): New function with the code moved from ...
	(separate_debug_file_exists): ... this function, specifically variables
	buffer and count.  New variable verified_as_different, set it.  Remove
	file_crc initialization.  Verify also if both files are not the same
	manually, if needed.
This commit is contained in:
Jan Kratochvil
2011-10-11 12:58:08 +00:00
parent 51370a3384
commit 904578edab
3 changed files with 87 additions and 14 deletions

View File

@@ -245,6 +245,11 @@ 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. */