* dwarf.c: Fix conversion to TU number.
This commit is contained in:
parent
1d859532c2
commit
ad6b52dd0b
@ -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>
|
2011-06-02 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* resres.c: Fix spelling typo.
|
* resres.c: Fix spelling typo.
|
||||||
|
@ -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);
|
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. */
|
/* Convert to TU number if it's for a type unit. */
|
||||||
if (cu >= cu_list_elements)
|
if (cu >= cu_list_elements / 2)
|
||||||
printf (" T%lu", (unsigned long) (cu - cu_list_elements));
|
printf (" T%lu", (unsigned long) (cu - cu_list_elements / 2));
|
||||||
else
|
else
|
||||||
printf (" %lu", (unsigned long) cu);
|
printf (" %lu", (unsigned long) cu);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user