This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Some gdb_exception{,error,quit} tweaks


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

Thanks.  This looks good to me.

Pedro> +  gdb_exception (enum return_reason r, enum errors e,
Pedro> +		 const char *fmt, va_list ap)
Pedro> +    : reason (r),
Pedro> +      error (e),
Pedro> +      message (std::make_shared<std::string> (string_vprintf (fmt, ap)))

I think these constructors should probably have ATTRIBUTE_PRINTF with 0
as the "first-to-check" parameter, like string_vprintf itself.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]