summaryrefslogtreecommitdiff
path: root/gdb/objfiles.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-10-11 12:58:06 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-10-11 12:58:06 +0000
commitd5ea8cae77d1a4333460850df9aaac11d07a8865 (patch)
tree7746a6ef47ff6e25d78a6c289e178f855e695d9f /gdb/objfiles.h
parent9eeeb6380672dd85d864d2f3f7f812ad650fcb64 (diff)
downloadgdb-d5ea8cae77d1a4333460850df9aaac11d07a8865.tar.gz
gdb/
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.
Diffstat (limited to 'gdb/objfiles.h')
-rw-r--r--gdb/objfiles.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h
index 1d24fb90b81..742da5d3c51 100644
--- a/gdb/objfiles.h
+++ b/gdb/objfiles.h
@@ -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. */