* objdump.c: Include sys/mman.h
authorNick Clifton <nickc@redhat.com>
Mon, 18 Jun 2007 16:38:49 +0000 (16:38 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 18 Jun 2007 16:38:49 +0000 (16:38 +0000)
commite8f5eee43dec2a0a9fa39b86a00d937b3879883c
treeb75c7ac80f6c35d9726c488404f2afe1ce573a49
parentdc1f3d8a2de4b827b4b396080acad35398a70fb4
* objdump.c: Include sys/mman.h
  (print_file_list): Remove f, add map, mapsize, linemap, maxline, last_line, first fields.
  (slurp_file): Add.
  (index_file): Add.
  (print_file_open): Call slurp_file and index_file. Initialize new fields.
  (skip_to_line): Rename to print_line and write only single line.
  (dump_line): Add.
  (show_line): Change to new algorithm.
binutils/ChangeLog
binutils/objdump.c