[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with gdb-mi.el + (possibly) comint.el + backslashes
From: |
Sergio Durigan Junior |
Subject: |
Re: Help with gdb-mi.el + (possibly) comint.el + backslashes |
Date: |
Sat, 22 Jun 2013 03:25:16 -0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
On Saturday, June 15 2013, I wrote:
> Hey there,
>
> I've been debugging gdb-mi.el in order to fix an annoying bug, but so
> far haven't understood how to fix it.
>
> The bug is basically that gdb-mi.el doesn't recognize backslashes for
> wrapped lines, so something like:
>
> (gdb) run \
> ARG1 \
> ARG2
>
> Fails with:
>
> Undefined command: "ARG2". Try "help".
>
> This is because "gdb-send" (inside gdb-mi.el) is receiving the wrong
> arguments every time the user presses RET (I debugged the function and
> noticed that it is receiving each line separately as if they were single
> commands, which can also be confirmed by the error message). Initially
> I thought it could be fixed inside gdb-mi.el itself, but then my
> attention was dragged to comint.el (since shell.el uses it and accepts
> backslashes normally), but so far I couldn't figure out how to solve
> this issue.
>
> I tried setting some comint.el variables inside gdb-mi.el
> (comint-prompt-regexp, or comint-delimiter-argument-list, for example),
> without success. So now I'm asking your opinion. Any hints on how to
> debug/solve this? Meanwhile I'll continue trying here.
Ping?
Don't know if I should ping some specific comint.el list (is there
any?). Unfortunately I didn't have time to play with this again.
Thanks,
--
Sergio