This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Unreliable BFD caching heuristic
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: lgustavo at codesourcery dot com, "gdb\ at sourceware dot org" <gdb at sourceware dot org>, "Maciej W. Rozycki" <macro at codesourcery dot com>
- Date: Thu, 21 Nov 2013 14:58:35 -0700
- Subject: Re: Unreliable BFD caching heuristic
- Authentication-results: sourceware.org; auth=none
- References: <528E454F dot 6060003 at codesourcery dot com> <528E49B8 dot 8090409 at redhat dot com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>> Do you have any proposals on ways to improve this heuristic?
Pedro> Compare st_ino/st_dev, and don't share if the system doesn't
Pedro> provide meaningful bfd_stat data?
Pedro> symfile.c:separate_debug_file_exists does this already,
Pedro> and then does a CRC check if all else fails. Not sure
Pedro> whether the CRC part would be a good idea here.
Using the nanosecond information given by stat would help, at least on
platforms where this exists.
Tom