This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug mi/15596] emacs interface with "gdb -i=mi" mishandles quoted newlines


http://sourceware.org/bugzilla/show_bug.cgi?id=15596

--- Comment #3 from Sergio Durigan Junior <sergiodj at redhat dot com> ---
A little more investigation on this...  On Emacs,
lisp/progmodes/gdb-mi.el:gdb-send, I notice that the string being sent for
processing is wrong.  When one types:

(gdb) run \
   BAZ QUX

The function gets called twice, first with "run \\", and next with "BAZ QUX",
leading to the "Undefined command" error.  So yeah, it seems the way Emacs
parses things (or comint-mode, which is the mode used by gdb-mi to interact
with the user, in this case) is wrong.

Since I'm sleepy now, I'll leave the bug opened and take a better look at it
tomorrow/during the weekend, just to make sure everything is covered.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]