[RFA] gdb-events.sh portability update

Keith Seitz keiths@cygnus.com
Thu Jun 7 12:43:00 GMT 2001


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




More information about the Gdb-patches mailing list