GNU bug report logs - #10765
24.0.93; gdb-mi cannot transmit commands containing double quotes

Previous Next

Package: emacs;

Reported by: Jim Blandy <jimb <at> red-bean.com>

Date: Wed, 8 Feb 2012 21:04:01 UTC

Severity: normal

Found in version 24.0.93

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 10765 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Jim Blandy <jimb <at> red-bean.com>
Cc: 10765 <at> debbugs.gnu.org
Subject: Re: bug#10765: Patch to fix this bug
Date: Wed, 08 Feb 2012 22:32:56 +0100
Jim Blandy <jimb <at> red-bean.com> writes:

> +(defun gdb-mi-quote (string)
> +  "Return STRING quoted properly as an MI argument.
> +The string is enclosed in double quotes.
> +All embedded quotes are replaced with \"\\\"\".
> +All embedded newlines are replaced with \"\\n\"."

What about backslashes?

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




This bug report was last modified 13 years and 150 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.