aboutsummaryrefslogtreecommitdiff
path: root/opcodes/microblaze-opc.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-03-29 08:18:49 +0200
committerJan Beulich <jbeulich@suse.com>2022-03-29 08:18:49 +0200
commitf3bbd5c389404eb4cc19d136886190d65fefde44 (patch)
tree33239213db4ad6edff9b7997da2bc3e8dd893208 /opcodes/microblaze-opc.h
parentbe13be5b687ff0c31eacb0bdd0ab90c329476ed1 (diff)
downloadgdb-f3bbd5c389404eb4cc19d136886190d65fefde44.zip
gdb-f3bbd5c389404eb4cc19d136886190d65fefde44.tar.gz
gdb-f3bbd5c389404eb4cc19d136886190d65fefde44.tar.bz2
bfd/Dwarf2: make find-nearest-line returned function name consistent
Prior to entering the enclosing "else if()" the earlier associated if() checks function->is_linkage and, if set, uses function->name. The comment in patch context precedes (and explains) the setting function->is_linkage. Yet with the flag set, we should then also return the function name, just like said earlier if() would do when we came here a 2nd time for the same "addr". And indeed passing the same address twice on addr2line's command line would resolve the function for the 2nd instance, but not for the 1st (if this code path is taken). (This, obviously, is particularly relevant when there's no ELF symbol table in the first place, like would be the case - naturally - in PE/COFF binaries, for example.)
Diffstat (limited to 'opcodes/microblaze-opc.h')
0 files changed, 0 insertions, 0 deletions