]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* objdump.c (dump_data): Correct addr_offset for opb != 1.
authorAlan Modra <amodra@gmail.com>
Mon, 21 Oct 2002 02:23:25 +0000 (02:23 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 21 Oct 2002 02:23:25 +0000 (02:23 +0000)
binutils/ChangeLog
binutils/objdump.c

index 373b3c910d7b5dabea92af66296f5e62021985cd..110f3ab3e2d0494acb8adc3e1240ebc18d53449a 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-21  Svein E. Seldal  <Svein.Seldal@solidas.com>
+
+       * objdump.c (dump_data): Correct addr_offset for opb != 1.
+
 2002-09-23  Daniel Jacobowitz  <drow@mvista.com>
 
        Merge from mainline:
@@ -33,7 +37,7 @@
        * po/fr.po: Updated French translation.
 
 2002-07-24  Nick Clifton  <nickc@redhat.com>
-       
+
        * po/es.po: Updated Spanish translation.
 
 2002-07-23  Daniel Jacobowitz  <drow@mvista.com>
 2002-06-18  Elias Athanasopoulos  <eathan@otenet.gr>
 
        * nm.c (print_size_symbols): Remove assignment, which makes
-       the symbol's size equal to its value when --size-sort is 
+       the symbol's size equal to its value when --size-sort is
        used.
 
 2002-06-18  Dave Brolley  <brolley@redhat.com>
        DW_CFA_def_cfa_sf and DW_CFA_def_cfa_offset_sf.
 
 2002-06-07  Elias Athanasopoulos  <eathan@otenet.gr>
-       
+
        * nm.c: When computing size of symbols for an ELF target use the
        internal size field.
 
        bfd_find_nearest_line is non-NULL.
 
 2002-04-25  Elena Zannoni <ezannoni@redhat.com>
-    
-        * readelf.c (get_AT_name): Handle DW_AT_GNU_vector.
+
+       * readelf.c (get_AT_name): Handle DW_AT_GNU_vector.
 
 2002-04-24  Christian Groessler <chris@groessler.org>
 
 
 2002-04-15  Eric Kohl <ekohl@rz-online.de>
 
-       * rcparse.y: Allow two to five parameter in FONT statement of 
+       * rcparse.y: Allow two to five parameter in FONT statement of
        DIALOGEX resources.
        * resbin.c (bin_to_res_dialog): Fixed read/write code for dialogex
        resource data.
-        (res_to_bin_dialog): Likewise.
+       (res_to_bin_dialog): Likewise.
        * windres.h: Added misssing charset variable to dialog_ex
        structure.
 
 
 2002-04-09  Bernd Herd <info@herdsoft.com>
 
-       * rcparse.y: CLASS definitions in DIALOG resources 
+       * rcparse.y: CLASS definitions in DIALOG resources
        are quoted.
        Fix typo in BEDIT warning.
        Don't add default dialog style when explicit style specified.
 
 2002-02-18  Timothy Daly  <remote_bob@yahoo.com>
 
-       * readelf.c (dump_relocations): Display 2nd and 3rd reloc 
-       types for 64-bit MIPS.  Narrow some fields for 80-char 
+       * readelf.c (dump_relocations): Display 2nd and 3rd reloc
+       types for 64-bit MIPS.  Narrow some fields for 80-char
        output.
-       (dump_relocations): Change spelling from 'unrecognised' 
+       (dump_relocations): Change spelling from 'unrecognised'
        to 'unrecognized'.
        (decode_ARM_machine_flags): Likewise.
        (parse_args): Likewise.
        (main): Accept -H as an alias for --help.
        * objcopy.c (strip_main): Accept -H as an alias for --help.
        * objdump.c (main): Accept -v as an alias for --verbose.
-        * readelf.c (usage): Adjust format to match style used in
+       * readelf.c (usage): Adjust format to match style used in
        other binutils.
        * size.c (usage): Update text to provide verbose description
        of the command line options.
 2002-01-15  Nick Clifton  <nickc@cambridge.redhat.com>
 
        * objcopy.c (copy_usage): Use "options" instead of "switches".
-        (strip_usage): Use "options" instead of "switches".
+       (strip_usage): Use "options" instead of "switches".
        * doc/binutils.texi (dlltool):  Refer to "options" instead of
-        "switches".
+       "switches".
 
 2002-01-14  Richard Earnshaw  <rearnsha@arm.com>
 
 
 2001-08-03  John Healy  <jhealy@redhat.com>
 
-        Patch suggested by Frank Eigler <fche@redhat.com>.
-        * objdump.c (disassemble_data): Fill in section member of the
-        disasm_info structure.
+       Patch suggested by Frank Eigler <fche@redhat.com>.
+       * objdump.c (disassemble_data): Fill in section member of the
+       disasm_info structure.
 
 2001-08-03  Tom Walsh  <tom@cyberiansoftware.com>
 
 
 2001-07-31  Nick Clifton  <nickc@cambridge.redhat.com>
 
-        * objcopy.c: Fix formatting.
-        (section_rename): New structure.
-        (OPTION_RENAME_SECTION): New switch.
-        (copy_usage): Document new switch.
-        (add_section_rename): New function: Add a node to the section
-        rename list.
-        (find_section_rename): New function: Find the new name and
-        flags for a section.
-        (setup_section): Call find_section_name to determine the name
-        of the output section.
-        (copy_main): Handle OPTION_RENAME_SECTION.
-        * binutils.texi: Document new switch.
+       * objcopy.c: Fix formatting.
+       (section_rename): New structure.
+       (OPTION_RENAME_SECTION): New switch.
+       (copy_usage): Document new switch.
+       (add_section_rename): New function: Add a node to the section
+       rename list.
+       (find_section_rename): New function: Find the new name and
+       flags for a section.
+       (setup_section): Call find_section_name to determine the name
+       of the output section.
+       (copy_main): Handle OPTION_RENAME_SECTION.
+       * binutils.texi: Document new switch.
        * NEWS: Mention new switch.
 
 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
 
 2001-06-18  H.J. Lu <hjl@gnu.org> & Nick Clifton <nickc@redhat.com>
 
-        * Makefile.am: Move documentation into doc subdirectory.
-        * Makefile.in: Regenerated.
+       * Makefile.am: Move documentation into doc subdirectory.
+       * Makefile.in: Regenerated.
        * binutils.texi: Move into doc subdirectory.
-        * addr2line.1: Removed.
-        * ar.1: Likewise.
-        * dlltool.1: Likewise.
-        * nlmconv.1: Likewise.
-        * nm.1: Likewise.
-        * objcopy.1: Likewise.
-        * objdump.1: Likewise.
-        * ranlib.1: Likewise.
-        * readelf.1: Likewise.
-        * size.1: Likewise.
-        * strings.1: Likewise.
-        * strip.1: Likewise.
-        * windres.1: Likewise.
-        * cxxfilt.man: Likewise.
+       * addr2line.1: Removed.
+       * ar.1: Likewise.
+       * dlltool.1: Likewise.
+       * nlmconv.1: Likewise.
+       * nm.1: Likewise.
+       * objcopy.1: Likewise.
+       * objdump.1: Likewise.
+       * ranlib.1: Likewise.
+       * readelf.1: Likewise.
+       * size.1: Likewise.
+       * strings.1: Likewise.
+       * strip.1: Likewise.
+       * windres.1: Likewise.
+       * cxxfilt.man: Likewise.
        * doc: New Directory.
        * doc/Makefile.am: New file.
        * doc/Makefile.in: Generate.
 
 2001-04-27  Johan Rydberg  <jrydberg@opencores.org>
 
-        * NEWS: Announce support for OpenRISC.
+       * NEWS: Announce support for OpenRISC.
 
 2001-04-17  Danny Smith  <dannysmith@users.sourceforge.net>
 
index 2687b6e74a7b9b97aa3f9247406b445df2da1147..d09b6e5cc795e46f6c336408502c96025ec66822 100644 (file)
@@ -2237,7 +2237,7 @@ dump_data (abfd)
                    stop_offset = bfd_section_size (abfd, section) / opb;
                }
              for (addr_offset = start_offset;
-                  addr_offset < stop_offset; addr_offset += onaline)
+                  addr_offset < stop_offset; addr_offset += onaline / opb)
                {
                  bfd_size_type j;
 
@@ -2255,7 +2255,8 @@ dump_data (abfd)
                    }
 
                  printf (" ");
-                 for (j = addr_offset; j < addr_offset * opb + onaline; j++)
+                 for (j = addr_offset * opb;
+                      j < addr_offset * opb + onaline; j++)
                    {
                      if (j >= stop_offset * opb)
                        printf (" ");