[bug #30579] incorrect gdb 'disassemble' command
anonymous <[email protected]> Wed, 28 Jul 2010 17:11:05 +0000
| Newsgroups | gmane.comp.debugging.ddd.bugs |
|---|---|
| Message-ID | <[email protected]> |
URL:
<http://savannah.gnu.org/bugs/?30579>
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
_______________________________________________________
Details:
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
message
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 += ' ';
to
cmd += ", ";
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30579>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/