OSDN Git Service

* 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)
commit493ff87b52d9eb2807db17c4dde2ba1a2880d435
treec4f09eeb4ef29fbf5df5dc0519ee7b2f2b77a46b
parenta5608dd1458f64afe836afecfb3422ec0fedf5fd
* 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