aboutsummaryrefslogtreecommitdiff
path: root/gdb/addrmap.h
diff options
context:
space:
mode:
authorHui Li <lihui@loongson.cn>2024-03-21 09:41:30 +0800
committerTiezhu Yang <yangtiezhu@loongson.cn>2024-03-21 22:07:24 +0800
commit006efc27dc52e4093ccee2dd5d4867c6a7f13fd6 (patch)
tree18eebee1d57fb9ca5c663944de94ea1f5e5e58b3 /gdb/addrmap.h
parentb7b293fa3bccbe0b450a859f71c2a90517902719 (diff)
downloadgdb-006efc27dc52e4093ccee2dd5d4867c6a7f13fd6.zip
gdb-006efc27dc52e4093ccee2dd5d4867c6a7f13fd6.tar.gz
gdb-006efc27dc52e4093ccee2dd5d4867c6a7f13fd6.tar.bz2
gdb: LoongArch: Silence warning about core file of lsx and lasx
In loongarch_iterate_over_regset_sections(), the second and third arguments of the iterate_over_regset_sections_cb callback function should be the regset size which is regsize * regnum. Otherwise when execute: make check-gdb TESTS="gdb.base/corefile.exp" there exists the following failed log: (gdb) core-file /home/fedora/community/gdb/build/gdb/testsuite/outputs/gdb.base/corefile/corefile.core [New LWP 531099] warning: Unexpected size of section `.reg-loongarch-lsx/531099' in core file. warning: Unexpected size of section `.reg-loongarch-lasx/531099' in core file. Core was generated by `/home/fedora/community/gdb/build/gdb/testsuite/outputs/gdb.base/corefile/corefile'. Program terminated with signal SIGABRT, Aborted. warning: Unexpected size of section `.reg-loongarch-lsx/531099' in core file. warning: Unexpected size of section `.reg-loongarch-lasx/531099' in core file. #0 0x00007ffff3081600 in __pthread_kill_implementation.constprop.0 () from /lib64/libc.so.6 (gdb) FAIL: gdb.base/corefile.exp: core-file warning-free Signed-off-by: Hui Li <lihui@loongson.cn> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diffstat (limited to 'gdb/addrmap.h')
0 files changed, 0 insertions, 0 deletions