From: Andrew Cagney <ac131313@cygnus.com>
To: matthew green <mrg@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch]: 2 more needed changes for sim-fpu.c & psim
Date: Fri, 14 Dec 2001 14:41:00 -0000 [thread overview]
Message-ID: <3C1A568D.3020300@cygnus.com> (raw)
In-Reply-To: <25809.1008293358@cygnus.com>
> + #include "defs.h"
> + #include "bfd.h"
> + #include "callback.h"
> + #include "remote-sim.h"
I'm puzzled by some of the includes. Well "defs.h" to be honest. I
know the PPC has a nasty hack so that it can access the GDB register
names but I'm not sure that main.c - a standalone program - should
include "defs.h".
> #ifdef HAVE_STDLIB_H
> #include <stdlib.h>
> #endif
> *************** sim_io_flush_stdoutput(void)
> *** 220,225 ****
> --- 225,248 ----
> error("sim_io_flush_stdoutput: invalid switch\n");
> break;
> }
> + }
> +
> + void
> + sim_io_error (SIM_DESC sd, const char *msg, ...)
> + {
> + va_list ap;
> + va_start(ap, msg);
> + vprintf(msg, ap);
> + printf("\n");
> + va_end(ap);
I think the error stuff should go to stderr.
From memory, for the sim_call.c, the error stuff should go to the callback.
Andrew
next prev parent reply other threads:[~2001-12-14 22:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-13 17:30 matthew green
2001-12-14 14:41 ` Andrew Cagney [this message]
2001-12-14 20:17 ` matthew green
2001-12-14 21:01 ` Andrew Cagney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C1A568D.3020300@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=mrg@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox