This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFC: cache the CRC in the BFD
- From: Tom Tromey <tromey at redhat dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 14 Mar 2013 14:18:48 -0600
- Subject: Re: RFC: cache the CRC in the BFD
- References: <87k3r1ez2z.fsf@fleche.redhat.com> <m3k3qznkws.fsf@redhat.com> <87y5fbddb5.fsf@fleche.redhat.com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
Tom> New fields.
Tom> (get_file_crc): Move from symfile.c.
Tom> (gdb_bfd_crc): New function.
Tom> * gdb_bfd.h (gdb_bfd_crc): Declare.
Tom> * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
Tom> * symfile.c (get_file_crc): Move to gdb_bfd.c.
Tom> (separate_debug_file_exists): Use gdb_bfd_crc.
I'm checking this in now.
Tom