* dwarf.c: Fix conversion to TU number.
authorCary Coutant <ccoutant@google.com>
Tue, 7 Jun 2011 23:39:28 +0000 (23:39 +0000)
committerCary Coutant <ccoutant@google.com>
Tue, 7 Jun 2011 23:39:28 +0000 (23:39 +0000)
binutils/ChangeLog
binutils/dwarf.c

index 859fbe9da3f63e926f7b68585ffb46c035b56981..74dad732c5a0df56d417504573355bfe3a314d33 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-07  Cary Coutant  <ccoutant@google.com>
+
+       * dwarf.c: Fix conversion to TU number.
+
 2011-06-02  Nick Clifton  <nickc@redhat.com>
 
        * resres.c: Fix spelling typo.
index db76ce8ef2f347267cabc5ba2c34fb964739f8ce..46c454adf688c1d7c67cb782dfe395faca7e8e9c 100644 (file)
@@ -5266,8 +5266,8 @@ display_gdb_index (struct dwarf_section *section,
            {
              cu = byte_get_little_endian (constant_pool + cu_vector_offset + 4 + j * 4, 4);
              /* Convert to TU number if it's for a type unit.  */
-             if (cu >= cu_list_elements)
-               printf (" T%lu", (unsigned long) (cu - cu_list_elements));
+             if (cu >= cu_list_elements / 2)
+               printf (" T%lu", (unsigned long) (cu - cu_list_elements / 2));
              else
                printf (" %lu", (unsigned long) cu);
            }
This page took 0.030157 seconds and 4 git commands to generate.