diff options
author | Cary Coutant <ccoutant@google.com> | 2011-06-07 23:39:28 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2011-06-07 23:39:28 +0000 |
commit | 8d305912d14f5a557120d98ce1c764181aefa837 (patch) | |
tree | fbdcc7f3a0230e47df14f4eee0524f4940371fe0 /binutils/dwarf.c | |
parent | 18be51a43fa007075cf368e16d79dd85d63dd0a8 (diff) | |
download | binutils-redhat-8d305912d14f5a557120d98ce1c764181aefa837.tar.gz |
* dwarf.c: Fix conversion to TU number.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index db76ce8ef2..46c454adf6 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -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); } |