aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2013-07-19 07:26:46 +0000
committerHui Zhu <teawater@gmail.com>2013-07-19 07:26:46 +0000
commitfa8769722155b2454d902457995acbac7b967af0 (patch)
tree0003d126740c1c59e6642faa1554a0d56471d621 /gdb/mi
parent0857ec573551de84198cf7d5c7e0c91bf5f2b58f (diff)
downloadgdb-fa8769722155b2454d902457995acbac7b967af0.zip
gdb-fa8769722155b2454d902457995acbac7b967af0.tar.gz
gdb-fa8769722155b2454d902457995acbac7b967af0.tar.bz2
2013-07-19 Hui Zhu <hui@codesourcery.com>
PR gdb/15692 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes. 2013-07-19 Hui Zhu <hui@codesourcery.com> PR gdb/15692 * gdb.mi/mi-dprintf.exp: Add double quotes test.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-cmd-break.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmd-break.c b/gdb/mi/mi-cmd-break.c
index 87ccee7..ab39989 100644
--- 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);