[RFA 2/8] Use counted_command_line everywhere

Tom Tromey tom@tromey.com
Tue Apr 24 23:18:00 GMT 2018


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

>> +      gdb::unique_xmalloc_ptr<char> default_collect_line
>> +	(xstrprintf ("collect %s", default_collect));

Pedro> string_printf ?

Actually, a few lines later:

>> +      actions.reset (new struct command_line (simple_control,
>> +					      default_collect_line.release ()),

So this couldn't use string_printf without additional work.

Tom



More information about the Gdb-patches mailing list