diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-10-11 12:58:08 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-10-11 12:58:08 +0000 |
commit | 904578edab299a982654a3ec01709097a6ed5661 (patch) | |
tree | b3a1b446a67e070122b91181cbf86aa3829566f9 /gdb/objfiles.h | |
parent | 51370a3384dd01bdb0e31816588a1fa74962c5ce (diff) | |
download | gdb-904578edab299a982654a3ec01709097a6ed5661.zip gdb-904578edab299a982654a3ec01709097a6ed5661.tar.gz gdb-904578edab299a982654a3ec01709097a6ed5661.tar.bz2 |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/objfiles.h b/gdb/objfiles.h index 1d24fb9..742da5d 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. */ |