diff options
author | Tom de Vries <tdevries@suse.de> | 2021-02-05 09:14:25 +0100 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2021-02-05 09:14:25 +0100 |
commit | fc9a13fbdd7005c93f9d16d33f861594008fc440 (patch) | |
tree | 639c02531996d3e9d5898ab82d3a2780f9e52612 | |
parent | 887854bae4a3b7b1edc0b2f75a2781a8c31ba805 (diff) | |
download | gdb-fc9a13fbdd7005c93f9d16d33f861594008fc440.zip gdb-fc9a13fbdd7005c93f9d16d33f861594008fc440.tar.gz gdb-fc9a13fbdd7005c93f9d16d33f861594008fc440.tar.bz2 |
[gdb/symtab] Fix indentation in create_cus_from_debug_names_list
Fix indentation in !map.augmentation_is_gdb part of
create_cus_from_debug_names_list.
gdb/ChangeLog:
2021-02-05 Tom de Vries <tdevries@suse.de>
* dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2/read.c | 32 |
2 files changed, 21 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d729b0e..75584a7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2021-02-05 Tom de Vries <tdevries@suse.de> + + * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation. + 2021-02-04 Mike Frysinger <vapier@gentoo.org> * configure.tgt (riscv*-*-*): Set gdb_sim. diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 5f89489..eb05851 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -5333,21 +5333,23 @@ create_cus_from_debug_names_list (dwarf2_per_bfd *per_bfd, { if (!map.augmentation_is_gdb) { - for (uint32_t i = 0; i < map.cu_count; ++i) - { - sect_offset sect_off - = (sect_offset) (extract_unsigned_integer - (map.cu_table_reordered + i * map.offset_size, - map.offset_size, - map.dwarf5_byte_order)); - /* We don't know the length of the CU, because the CU list in a - .debug_names index can be incomplete, so we can't use the start of - the next CU as end of this CU. We create the CUs here with length 0, - and in cutu_reader::cutu_reader we'll fill in the actual length. */ - dwarf2_per_cu_data *per_cu - = create_cu_from_index_list (per_bfd, §ion, is_dwz, sect_off, 0); - per_bfd->all_comp_units.push_back (per_cu); - } + for (uint32_t i = 0; i < map.cu_count; ++i) + { + sect_offset sect_off + = (sect_offset) (extract_unsigned_integer + (map.cu_table_reordered + i * map.offset_size, + map.offset_size, + map.dwarf5_byte_order)); + /* We don't know the length of the CU, because the CU list in a + .debug_names index can be incomplete, so we can't use the start + of the next CU as end of this CU. We create the CUs here with + length 0, and in cutu_reader::cutu_reader we'll fill in the + actual length. */ + dwarf2_per_cu_data *per_cu + = create_cu_from_index_list (per_bfd, §ion, is_dwz, + sect_off, 0); + per_bfd->all_comp_units.push_back (per_cu); + } } sect_offset sect_off_prev; |