+2017-06-28 Yao Qi <yao.qi@linaro.org>
+
+ * mi/mi-cmd-break.c (mi_argv_to_format): Use obstack_grow_str
+ instead of obstack_grow.
+
2017-06-28 Doug Gilmore <Doug.Gilmore@imgtec.com>
PR gdb/21337
xsnprintf (tmp, sizeof (tmp), "\\%o",
(unsigned char) argv[0][i]);
- obstack_grow (&obstack, tmp, strlen (tmp));
+ obstack_grow_str (&obstack, tmp);
}
break;
}
for (i = 1; i < argc; i++)
{
obstack_1grow (&obstack, ',');
- obstack_grow (&obstack, argv[i], strlen (argv[i]));
+ obstack_grow_str (&obstack, argv[i]);
}
obstack_1grow (&obstack, '\0');