]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[gdb/symtab] Apply workaround for PR gas/31115 a bit more
authorTom de Vries <tdevries@suse.de>
Mon, 9 Dec 2024 17:19:36 +0000 (18:19 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 9 Dec 2024 17:19:36 +0000 (18:19 +0100)
commit7b46460a619a9b5719d1e79226bf371bbf29c7d2
tree534841a2739c5860513c12601f22ecbcbd8f6821
parent4f719a08a8a7c80dbac0854311516e299de178a6
[gdb/symtab] Apply workaround for PR gas/31115 a bit more

In commit 8a61ee551ce ("[gdb/symtab] Workaround PR gas/31115"), I applied a
workaround for PR gas/31115 in read_func_scope, fixing test-case
gdb.arch/pr25124.exp.

Recently I noticed that the test-case is failing again.

Fix this by factoring out the workaround into a new function fixup_low_high_pc
and applying it in dwarf2_die_base_address.

While we're at it, do the same in dwarf2_record_block_ranges.

Tested on arm-linux with target boards unix/-marm and unix/-mthumb.

Reviewed-By: Alexandra Petlanova Hajkova <ahajkova@redhat.com>
gdb/dwarf2/read.c