Files
binutils-gdb/gdb/common
Tom Tromey 8e481c3ba8 C++-ify parse_format_string
This replaces parse_format_string with a class, removing some
constructors along the way.  While doing this, I found that one
argument to gen_printf is unused, so I removed it.

Also, I am not completely sure, but the use of `release' in
maint_agent_printf_command and parse_cmd_to_aexpr seems like it may
leak expressions.

Regression tested by the buildbot.

ChangeLog
2017-12-08  Tom Tromey  <tom@tromey.com>

	* printcmd.c (ui_printf): Update.  Use std::vector.
	* common/format.h (struct format_piece): Add constructor.
	<string>: Now const.
	(class format_pieces): New class.
	(parse_format_string, free_format_pieces)
	(free_format_pieces_cleanup): Remove.
	* common/format.c (format_pieces::format_pieces): Rename from
	parse_format_string.  Update.
	(free_format_pieces, free_format_pieces_cleanup): Remove.
	* breakpoint.c (parse_cmd_to_aexpr): Update.  Use std::vector.
	* ax-gdb.h (gen_printf): Remove argument.
	* ax-gdb.c (gen_printf): Remove "frags" argument.
	(maint_agent_printf_command): Update.  Use std::vector.

gdbserver/ChangeLog
2017-12-08  Tom Tromey  <tom@tromey.com>

	* ax.c (ax_printf): Update.
2017-12-08 10:23:43 -07:00
..
2017-09-04 17:10:12 +01:00
2017-07-03 13:59:00 +02:00
2017-10-10 16:45:50 +01:00
2017-11-17 13:03:34 -05:00
2017-08-03 07:58:52 -06:00
2017-12-08 10:23:43 -07:00
2017-12-08 10:23:43 -07:00
2017-10-04 01:57:29 -04:00
2017-10-04 01:57:29 -04:00
2017-11-17 13:03:34 -05:00
2017-12-02 20:28:41 -05:00
2017-09-16 14:06:03 +02:00
2017-12-07 11:49:01 -05:00