From: Eli Zaretskii <eliz@gnu.org>
To: Sergio Durigan Junior <sergiodj@riseup.net>
Cc: 14847@debbugs.gnu.org
Subject: bug#14847: 24.1; gdb-mi.el does not handle backslashes as quotes
Date: Fri, 12 Jul 2013 11:50:33 +0300 [thread overview]
Message-ID: <83hag05fhi.fsf@gnu.org> (raw)
In-Reply-To: <87r4f4qvuv.fsf@riseup.net>
> From: Sergio Durigan Junior <sergiodj@riseup.net>
> Date: Fri, 12 Jul 2013 00:51:20 -0300
>
> If you start gdb-mi.el (on Emacs 24.1), and try to use backslashes to
> quote/break long lines, it is not handled correctly. For example,
> suppose your program being debugged inside GDB takes 3 arguments. You
> could run it with:
>
> (gdb) file myprogram
> Reading symbols from myprogram...done.
> (gdb) run \
> first_arg \
> second_arg \
> third_arg
>
> GDB should correctly run the binary using the 3 args. However, inside
> Emacs, you receive an error:
>
> Undefined command: "third_arg". Try "help".
>
> This is because gdb-mi.el is not handling the backslashes correctly.
> The error is specifically on the function `gdb_send', and the patch
> inlined in this message fixes this. The patch can also be seen on:
>
> <https://lists.gnu.org/archive/html/emacs-devel/2013-07/msg00423.html>
>
> And there is also a GDB bug related to this issue:
>
> <http://sourceware.org/bugzilla/show_bug.cgi?id=15596>
Your patch doesn't seem to work for me. I tried on GNU/Linux and on
MS-Windows, and in both cases I get the same error. Here's the recipe
I tried (after applying your latest patch and rebuilding Emacs):
emacs -Q
M-x gdb RET
gdb -i=mi ./src/emacs RET
(gdb) break main
(gdb) run \
-Q
When I type RET after "-Q", I get an error:
Undefined MI command: Q
What am I doing wrong?
Thanks.
next prev parent reply other threads:[~2013-07-12 8:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-12 3:51 bug#14847: 24.1; gdb-mi.el does not handle backslashes as quotes Sergio Durigan Junior
2013-07-12 8:50 ` Eli Zaretskii [this message]
2013-07-12 15:51 ` Sergio Durigan Junior
2013-07-12 18:20 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83hag05fhi.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=14847@debbugs.gnu.org \
--cc=sergiodj@riseup.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.