public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/31926] New: RISC-V extensions incorrectly disassembled without -march
@ 2024-06-25 10:34 jdek at itanimul dot li
2024-06-25 10:35 ` [Bug gdb/31926] " jdek at itanimul dot li
0 siblings, 1 reply; 2+ messages in thread
From: jdek at itanimul dot li @ 2024-06-25 10:34 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31926
Bug ID: 31926
Summary: RISC-V extensions incorrectly disassembled without
-march
Product: gdb
Version: 14.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: jdek at itanimul dot li
Target Milestone: ---
RISC-V extensions can be enabled using .option which is used in situations
where some functions may have alternate implementations using them. These
functions can be swapped at runtime based on the available extensions on the
current system whilst the executable itself runs on systems without these
extensions. When this is used, GDB does not properly disassemble functions
containing instructions from extensions enabled with .option.
Example tested on (GDB 14.2):
`marchgc` compiled with: gcc -march=rv64gc -o marchgc marchgc.S
.option push
.option arch, +zve64x
.globl main
main:
vsetivli zero, 16, e8, ta, ma
.option pop
`gdb -ex 'disas main' marchgc`:
0x0000000000000608 <+0>: .insn 4, 0xcc087057
`marchgcv` compiled with gcc -march=rv64gcv -o marchgcv marchgcv.S
.globl main
main:
vsetivli zero, 16, e8, ta, ma
`gdb -ex 'disas main' marchgcv`:
0x0000000000000608 <+0>: vsetivli zero,16,e8,m1,ta,ma
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug gdb/31926] RISC-V extensions incorrectly disassembled without -march
2024-06-25 10:34 [Bug gdb/31926] New: RISC-V extensions incorrectly disassembled without -march jdek at itanimul dot li
@ 2024-06-25 10:35 ` jdek at itanimul dot li
0 siblings, 0 replies; 2+ messages in thread
From: jdek at itanimul dot li @ 2024-06-25 10:35 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=31926
J. Dekker <jdek at itanimul dot li> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jdek at itanimul dot li
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-25 10:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-25 10:34 [Bug gdb/31926] New: RISC-V extensions incorrectly disassembled without -march jdek at itanimul dot li
2024-06-25 10:35 ` [Bug gdb/31926] " jdek at itanimul dot li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).