* coffread.c: General cleanup, and support for section offsets.
authorStan Shebs <shebs@codesourcery.com>
Wed, 17 Aug 1994 00:15:28 +0000 (00:15 +0000)
committerStan Shebs <shebs@codesourcery.com>
Wed, 17 Aug 1994 00:15:28 +0000 (00:15 +0000)
commitd696808d7d2f8c3060fa01e659f3dda74298d59d
tree54476cd09cbebafdcd1777b557417c484708fa53
parent0cec815fa2cadbc09a75fc3fc087771e33995aa1
* coffread.c: General cleanup, and support for section offsets.
(time.h, sys/types.h, libbfd.h): Don't include.
(cur_src_start_addr, cur_src_end_addr): Rename to
current_source_start_addr, current_source_end_addr.
(nlist_stream_global): Remove.
(nlist_bfd_global): New global variable.
(coff_symfile_read): Remove code that gets and uses fileno()
directly.
(read_coff_symtab, enter_linenos, process_coff_symbol): Add
section_offsets parameter, add text/data section offset to
appropriate symbols' values.
(read_one_sym): Use bfd_read instead of fread.
(init_stringtab, init_lineno): Change first parameter to a bfd,
use bfd routines instead of raw I/O.
gdb/ChangeLog