This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Patch for cgen_rtx_error()
- To: Ben Elliston <bje at redhat dot com>
- Subject: Re: [RFA] Patch for cgen_rtx_error()
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Sat, 7 Oct 2000 21:51:14 -0400
- Cc: gdb-patches at sources dot redhat dot com
- References: <200010080038.LAA27334@dublin.cygnus.com>
On Sun, Oct 08, 2000 at 11:38:00AM +1100, Ben Elliston wrote:
> The following patch implements the cgen_rtx_error function [...]
> [...]
> +/* Emit an error message from CGEN RTL. */
> +
> +void
> +cgen_rtx_error (SIM_CPU *cpu, const char * fmt, ...)
> +{
> + va_list ap;
> + va_start(ap, fmt);
> + sim_io_printf (CPU_STATE (cpu), fmt, ap);
> + va_end(ap);
> + sim_io_printf (CPU_STATE (cpu), "\n");
> +}
Rather than just print the given message (is it really a varargs function?),
it would be good to do a sim_engine_halt() there too.
- FChE
PGP signature