Re: [PATCH] Fix PR 15692 -dprintf-insert does not accept double quotes

Yao Qi
2013-07-02T14:44:54Z

On 07/02/2013 09:30 PM, Hui Zhu wrote:
> --- 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);

IWBN to add a test case to show that GDB handles double quotes correctly
after this fix.

--
Yao (é½å°§)