[PATCH 02/58] gdbserver: turn target op 'create_inferior' into a method

Pedro Alves palves@redhat.com
Thu Feb 13 20:27:00 GMT 2020


On 2/11/20 9:01 AM, Tankut Baris Aktemur wrote:
> -static int
> -linux_create_inferior (const char *program,
> -		       const std::vector<char *> &program_args)
> +int
> +linux_process_target::create_inferior (
> +    const char *program, const std::vector<char *> &program_args)

No '(' at end of line, please.  You can either write:

linux_process_target::create_inferior 
  (const char *program, const std::vector<char *> &program_args)

... with two leading spaces, or:

linux_process_target::create_inferior (const char *program, 
                                       const std::vector<char *> &program_args)

since that fits in 79 cols.

The occurs in a number of other spots in the series, but I won't
comment on them.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list