aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/ctf-constvars.c
diff options
context:
space:
mode:
authorMarek PikuĊ‚a <m.pikula@partner.samsung.com>2025-05-28 13:54:47 +0200
committerAndrew Burgess <aburgess@redhat.com>2025-07-17 18:11:47 +0100
commit1324b95f574f86018e947e1c5255a26266e0eefc (patch)
treef46b175eb588a9dd6187fe26b8fbe3814db42b9f /gdb/testsuite/gdb.base/ctf-constvars.c
parent596ba5e9fb2bb03d866bc8cfacc0b24c2619d723 (diff)
downloadfsf-binutils-gdb-master.zip
fsf-binutils-gdb-master.tar.gz
fsf-binutils-gdb-master.tar.bz2
gdb/risc-v: fix ISA string detection for disassemblyHEADmaster
Commit 3f61a38 introduced a regression where the ISA string was no longer detected based on the ELF header. The mechanism was changed from directly referencing `abfd` to using `disassembler_info->section`, which was not properly initialized for RISC-V. The previous implementation ignored the object in scope, leading to issues such as failing to decode RVV instructions when a library was compiled as `rv64gcv` and the main application as `rv64gc`. This patch resolves both problems by initializing `disassembler_info->section` with the object currently in scope, ensuring correct ISA string detection during disassembly. Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/testsuite/gdb.base/ctf-constvars.c')
0 files changed, 0 insertions, 0 deletions