diff options
author | Xi Ruoyao <xry111@xry111.site> | 2025-08-06 12:19:22 +0800 |
---|---|---|
committer | cailulu <cailulu@loongson.cn> | 2025-08-07 09:21:38 +0800 |
commit | 3eede6b04a30243fdc4acece156be95b17c16f83 (patch) | |
tree | c0da5f315d3bcf6e91065847c84b4a789d8dd482 /gdb/testsuite/gdb.ada/non-ascii-utf-8 | |
parent | 081bf6a3a18da20293693bf30617c5736ef270bc (diff) | |
download | gdb-master.zip gdb-master.tar.gz gdb-master.tar.bz2 |
There's a logic error in loongarch_relax_perform_deletes: when there's
not any delete operation of which the start address is strictly smaller
than the symbol address, splay_tree_predecessor() will return nullptr
and the symbol size will be unchanged even if some bytes of it are
removed.
Make the logic more complete to fix this issue. Also factor out the
symbol size adjustment logic into a function to avoid code bloating.
Tested-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Diffstat (limited to 'gdb/testsuite/gdb.ada/non-ascii-utf-8')
0 files changed, 0 insertions, 0 deletions