Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439766 - dev-util/ddd-3.3.12-r2 Machine Code Window does not work
Summary: dev-util/ddd-3.3.12-r2 Machine Code Window does not work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Maciej Mrozowski
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-10-26 15:50 UTC by Simone Scanzoni
Modified: 2012-11-06 01:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ddd-3.3.12-gdb-disassembler-bug.patch (ddd-3.3.12-gdb-disassembler-bug.patch,266 bytes, text/plain)
2012-10-26 15:50 UTC, Simone Scanzoni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simone Scanzoni 2012-10-26 15:50:09 UTC
Created attachment 327476 [details]
ddd-3.3.12-gdb-disassembler-bug.patch

Using ddd with gdb, Machine Code Window (View -> Machine Code Window) does not show disassembled code; instead, you can see the message "A syntax error in expression, near `<hex_address>'".

The bug is caused by ddd using the old syntax for gdb command "disassemble", which used to require blank space as a separator between starting and ending address. The new syntax (introduced by a commit from Paul Pluzhnikov on november 23rd, 2009) requires a comma between the two addresses.

Attached is the trivial patch that restores the correct behaviour I found here: https://bugs.launchpad.net/ubuntu/+source/ddd/+bug/594883
Comment 1 Maciej Mrozowski gentoo-dev 2012-11-06 01:07:31 UTC
Patch applied in 3.3.12-r3, thanks for reporting!