aboutsummaryrefslogtreecommitdiff
path: root/bfd/libcoff.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-09-25 20:03:11 +0000
committerIan Lance Taylor <ian@airs.com>1995-09-25 20:03:11 +0000
commit25b5a53dacb235c0464ba09f519ad2ce4cf2530d (patch)
treea418acf474e9517b3587a0fac2a97608d3bc63c3 /bfd/libcoff.h
parent641ac26a0638837b53896d6733adf0708c8d089a (diff)
downloadgdb-25b5a53dacb235c0464ba09f519ad2ce4cf2530d.zip
gdb-25b5a53dacb235c0464ba09f519ad2ce4cf2530d.tar.gz
gdb-25b5a53dacb235c0464ba09f519ad2ce4cf2530d.tar.bz2
* libcoff-in.h (struct coff_section_tdata): Add offset, i,
function, and line_base fields. * libcoff.h: Rebuild. * coffgen.c (coff_find_nearest_line): Use section tdata to cache information, rather than using static variables.
Diffstat (limited to 'bfd/libcoff.h')
-rw-r--r--bfd/libcoff.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/libcoff.h b/bfd/libcoff.h
index 8f2a45e..4e7d837 100644
--- a/bfd/libcoff.h
+++ b/bfd/libcoff.h
@@ -115,6 +115,11 @@ struct coff_section_tdata
bfd_byte *contents;
/* If this is true, the contents entry may not be freed. */
boolean keep_contents;
+ /* Information cached by coff_find_nearest_line. */
+ bfd_vma offset;
+ unsigned int i;
+ const char *function;
+ int line_base;
/* Available for individual backends. */
PTR tdata;
};