This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] -Wwrite-strings: Constify shell_escape and plug make_command leak
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 05 Apr 2017 16:34:05 -0400
- Subject: [binutils-gdb] -Wwrite-strings: Constify shell_escape and plug make_command leak
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT be47f9e8180d7275b0e2b26998472e99be9a2d7b ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: be47f9e8180d7275b0e2b26998472e99be9a2d7b
-Wwrite-strings: Constify shell_escape and plug make_command leak
gdb/ChangeLog:
2017-04-05 Pedro Alves <palves@redhat.com>
* cli/cli-cmds.c (shell_escape): Constify 'arg' parameter.
(shell_command): New function.
(make_command): Use std::string.
(init_cli_cmds): Register shell_command instead of shell_escape.