Bug 2277160

Summary: gdb: missing APX support in the disassembler
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: gdbAssignee: Keith Seitz <keiths>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 40CC: ahajkova, fweimer, guinevere, jan, keiths, kevinb, mcermak, mkolar
Target Milestone: ---Flags: fweimer: mirror+
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: gdb-14.2-2.fc40 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-30 01:22:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Florian Weimer 2024-04-25 13:46:09 UTC
The GDB disassembler does not support APX.

Reproducer:

cat >apx.s <<EOF
	.text
f:
	push2 %rax, %rbx
EOF
as apx.s
gdb -quiet -ex "disassemble f" -ex quit a.out

Current output:

Reading symbols from a.out...
(No debugging symbols found in a.out)
Dump of assembler code for function f:
   0x0000000000000000 <+0>:	(bad)
   0x0000000000000001 <+1>:	hlt
   0x0000000000000002 <+2>:	fs sbb %bh,%bh
   0x0000000000000005 <+5>:	lock
End of assembler dump.

Expected output: Something similar to what objdump prints:

0000000000000000 <f>:
   0:	62 f4 64 18 ff f0    	push2  %rax,%rbx


Problem seen with: gdb-14.2-1.fc40.x86_64

Reproducible: Always

Comment 1 Fedora Update System 2024-05-22 18:01:11 UTC
FEDORA-2024-11329d120f (gdb-14.2-2.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-11329d120f

Comment 2 Fedora Update System 2024-05-23 03:10:43 UTC
FEDORA-2024-11329d120f has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-11329d120f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-11329d120f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2024-05-30 01:22:01 UTC
FEDORA-2024-11329d120f (gdb-14.2-2.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.