aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-bfd.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-03-29 12:27:44 +0100
committerNick Clifton <nickc@redhat.com>2017-03-29 12:27:44 +0100
commite643cb45bf85fa5c8c49a89ff177de246af4212e (patch)
tree7502fe7dfb9df55c6101f35cd641c008b9ec4510 /bfd/coff-bfd.h
parent7cc0cd2903612a0730de6ba00181b9016e77ea3d (diff)
downloadgdb-e643cb45bf85fa5c8c49a89ff177de246af4212e.zip
gdb-e643cb45bf85fa5c8c49a89ff177de246af4212e.tar.gz
gdb-e643cb45bf85fa5c8c49a89ff177de246af4212e.tar.bz2
Improve the speed of scanning PE binaries for line number information.
PR binutils/18025 * coff-bfd.h (struct coff_section_data): Add new fields: saved_bias and bias. * coffgen.c (coff_find_nearest_line_with_names): Cache the bias computed for PE binaries. * dwarf2.c (scan_unit_for_symbols): Only warn once about each missing abbrev.
Diffstat (limited to 'bfd/coff-bfd.h')
-rw-r--r--bfd/coff-bfd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/coff-bfd.h b/bfd/coff-bfd.h
index c76bf3a..97117b3 100644
--- a/bfd/coff-bfd.h
+++ b/bfd/coff-bfd.h
@@ -50,6 +50,8 @@ struct coff_section_tdata
/* If this is TRUE, the contents entry may not be freed. */
bfd_boolean keep_contents;
/* Information cached by coff_find_nearest_line. */
+ bfd_boolean saved_bias;
+ bfd_signed_vma bias;
bfd_vma offset;
unsigned int i;
const char *function;