FS#53913 - [ddd] Not compatible with current gdb; fails to show disassembled code

Attached to Project: Arch Linux
Opened by CJ Kucera (apocalyptech) - Tuesday, 02 May 2017, 21:49 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 27 September 2018, 15:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Eric Belanger (Snowman)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The graphical gdb frontend "ddd" does not currently show disassembled code in it's "Machine Code" window due to a syntax change in an earlier version of gdb. This problem has been reported to the main ddd bugtracker in 2014, and to other distros' bugtrackers before that, but ddd itself doesn't seem to be really getting maintained anymore, and other distros have added a patch to address the problem on their packaged ddd versions.

Bug on ddd's tracker: http://savannah.gnu.org/bugs/?42370
Bug on Debian's tracker: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597328
Bug on Fedora's tracker: https://bugzilla.redhat.com/show_bug.cgi?id=1108862

The patch attached to ddd's tracker itself is a general-purpose one which allows the user to decide whether to use the updated syntax or not at ./configure-time, whereas the Debian and Fedora patches just assume that the fix is needed, and are much more concise.

I'm attaching the patch from Fedora's tracker, which I've applied locally and can verify that it works.

Additional info:
* ddd-3.3.12-8

Steps to reproduce:

1. Open DDD with an executable to debug
2. Enable the Machine Code Window from the View Menu
3. Start the program being debugged

Actual results:
"A syntax error in expression, near <address>"

Expected results:
"Dump of assembler code from ...", followed by machine code
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 27 September 2018, 15:05 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Dropped to AUR

Loading...