This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix PR 15692 -dprintf-insert does not accept double quotes
- From: Hui Zhu <teawater at gmail dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Tue, 2 Jul 2013 21:30:52 +0800
- Subject: [PATCH] Fix PR 15692 -dprintf-insert does not accept double quotes
Hi,
I found this issue because mi_argv_to_format doesn't handle double
quotes. So I make a patch to add it.
Thanks,
Hui
2013-07-02 Hui Zhu <hui@codesourcery.com>
PR gdb/15692
mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
--- a/gdb/mi/mi-cmd-break.c
+++ b/gdb/mi/mi-cmd-break.c
@@ -128,6 +128,9 @@ mi_argv_to_format (char **argv, int argc
case '\v':
obstack_grow (&obstack, "\\v", 2);
break;
+ case '"':
+ obstack_grow (&obstack, "\\\"", 2);
+ break;
default:
if (isprint (argv[0][i]))
obstack_grow (&obstack, argv[0] + i, 1);