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 | ad6b52dd0b70f6f9702b648dcbe855cd272b6bf0 (patch) | |
tree | b5ded48c40be60d4a04e23a955c32806a3b19198 /binutils/dwarf.c | |
parent | 1d859532c2502eb48d132591d3be80f468e2d381 (diff) | |
download | gdb-ad6b52dd0b70f6f9702b648dcbe855cd272b6bf0.zip gdb-ad6b52dd0b70f6f9702b648dcbe855cd272b6bf0.tar.gz gdb-ad6b52dd0b70f6f9702b648dcbe855cd272b6bf0.tar.bz2 |
* 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 db76ce8..46c454a 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); } |