This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] gdb-events.sh portability update
- To: <gdb-patches at sources dot redhat dot com>
- Subject: Re: [RFA] gdb-events.sh portability update
- From: Keith Seitz <keiths at cygnus dot com>
- Date: Thu, 7 Jun 2001 12:42:29 -0700 (PDT)
On Thu, 7 Jun 2001, Andrew Cagney wrote:
> > 3) Uses "echo" to put strings containing special characters (e.g. \n) into
> > files:
> >
> > echo ""
> > echo "fprintf_unfiltered (gdb_stderr, \"This is an error\\n\");"
>
> Yes, ok.
Done.
> On the last one, gdbarch.sh now uses printf but it doesn't
> matter either way.
So it does. I wasn't sure whether this was portable, but it would seem to
be.
Perhaps one of my subsequent patches to gdb-events.sh will mimick more of
gdbarch.sh... :-)
Keith