Package: ddd
Version: 1:3.3.11-1ubuntu2
Severity: normal
Tags: 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.
This happens on Ubuntu Lucid, with ddd version 1:3.3.11-1ubuntu2 and gdb 
version 7.1-1ubuntu2, but Debian package ddd 1:3.3.12-2 still presents the 
issue.
This trivial patch, along with a change in gdb dependency version, restores the 
correct behaviour:

--- a/ddd/GDBAgent.C
+++ b/ddd/GDBAgent.C
@@ -3200,7 +3200,7 @@
     {
         string end_( end );
        normalize_address(end_);
-       cmd += ' ';
+       cmd += ',';
        cmd += end_;
     }
     return cmd;


This bug was originally reported on launchpad: 
https://bugs.launchpad.net/ubuntu/+source/ddd/+bug/594883




-- System Information:
Debian Release: squeeze/sid
  APT prefers lucid-updates
  APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-24-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ddd depends on:
ii  dpkg               1.15.5.6ubuntu4.1     Debian package management system
ii  install-info       4.13a.dfsg.1-5ubuntu1 Manage installed documentation in 
ii  lesstif2           1:0.95.2-1            OSF/Motif 2.1 implementation relea
ii  libc6              2.11.1-0ubuntu7.2     Embedded GNU C Library: Shared lib
ii  libgcc1            1:4.4.3-4ubuntu5      GCC support library
ii  libice6            2:1.0.6-1             X11 Inter-Client Exchange library
ii  libncurses5        5.7+20090803-2ubuntu3 shared libraries for terminal hand
ii  libsm6             2:1.1.1-1             X11 Session Management library
ii  libstdc++6         4.4.3-4ubuntu5        The GNU Standard C++ Library v3
ii  libx11-6           2:1.3.2-1ubuntu3      X11 client-side library
ii  libxaw7            2:1.0.7-1             X11 Athena Widget library
ii  libxext6           2:1.1.1-2             X11 miscellaneous extension librar
ii  libxmu6            2:1.0.5-1             X11 miscellaneous utility library
ii  libxp6             1:1.0.0.xsf1-2build1  X Printing Extension (Xprint) clie
ii  libxpm4            1:3.5.8-1             X11 pixmap library
ii  libxt6             1:1.0.7-1             X11 toolkit intrinsics library

Versions of packages ddd recommends:
ii  gdb                         7.1-1ubuntu2 The GNU Debugger

Versions of packages ddd suggests:
ii  cups-bsd [lpr]     1.4.3-1ubuntu1.2      Common UNIX Printing System(tm) - 
pn  ddd-doc            <none>                (no description available)
ii  glibc-doc          2.11.1-0ubuntu7.2     Embedded GNU C Library: Documentat
ii  gnuplot            4.2.6-1               A command-line driven interactive 
ii  info               4.13a.dfsg.1-5ubuntu1 Standalone GNU Info documentation 
ii  openssh-client [rs 1:5.3p1-3ubuntu4      secure shell (SSH) client, for sec
ii  perl               5.10.1-8ubuntu2       Larry Wall's Practical Extraction 
ii  pydb               1.26-1                An enhanced Python command-line de
pn  xbase-clients      <none>                (no description available)
ii  xterm              256-1ubuntu1          X terminal emulator

-- no debconf information
--- a/ddd/GDBAgent.C
+++ b/ddd/GDBAgent.C
@@ -3200,7 +3200,7 @@
     {
         string end_( end );
        normalize_address(end_);
-       cmd += ' ';
+       cmd += ',';
        cmd += end_;
     }
     return cmd;

Reply via email to