[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #30579] incorrect gdb 'disassemble' command

From: anonymous
Subject: [bug #30579] incorrect gdb 'disassemble' command
Date: Wed, 28 Jul 2010 17:11:05 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv: Gecko/2009102815 Ubuntu/9.04 (jaunty) Firefox/3.0.15


                 Summary: incorrect gdb 'disassemble' command
                 Project: DDD
            Submitted by: None
            Submitted on: Wed Jul 28 17:11:05 2010
                Category: Gdb integration
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.3.12-rc2



Using ddd 3.3.12 with gdb 7.1, I found that trying to display disassembled
code in the Machine Code window resulted in the error

   A syntax error in expression, near <2nd argument>

The problem is that when two arguments, e.g. addresses, are supplied to the
gdb disassemble command gdb expects them to be separated by a comma, but ddd
is constructing the command with no comma.

The fix is simple: in the method GDBAgent::disassemble_command in file
GDBAgent.c, at line 3203, change

   cmd += ' ';


   cmd += ", ";


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]