Summary: | emacs interface with "gdb -i=mi" mishandles quoted newlines | ||
---|---|---|---|
Product: | gdb | Reporter: | stolfi |
Component: | mi | Assignee: | Not yet assigned to anyone <unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | sergiodj |
Priority: | P2 | ||
Version: | 7.5 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
stolfi
2013-06-07 03:25:56 UTC
I've been talking to Jorge about this, and I am strongly inclined to believe that it is Emacs' (i.e., gdb-mi's) fault. Will see if I can find the culprit. May be an emacs 24 bug of course. The "older version" I mentioned was used under an older emacs too, as "gdb --annotate=3" I believe. 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. I was right, this was an issue with Emacs. I have fixed it there, you can take a look at: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14847 Closing this bug as INVALID, then. Thank you for the report! |