This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: PATCH: fix unescaped newline
- From: Michael Snyder <msnyder at redhat dot com>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 01 Apr 2002 10:42:20 -0800
- Subject: Re: PATCH: fix unescaped newline
- Organization: Red Hat, Inc.
- References: <20020329233405.BFD595EA11@zwingli.cygnus.com>
Jim Blandy wrote:
>
> Obvious fix.
>
> 2002-03-29 Jim Blandy <jimb@redhat.com>
>
> * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
> unescaped newlines in string literals, but newer ones don't. So
> escape them.
Thank you.
>
> Index: gdb/cli/cli-dump.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/cli/cli-dump.c,v
> retrieving revision 1.1
> diff -c -r1.1 cli-dump.c
> *** gdb/cli/cli-dump.c 2002/03/29 01:22:41 1.1
> --- gdb/cli/cli-dump.c 2002/03/29 23:30:48
> ***************
> *** 816,822 ****
> "Restore the contents of FILE to target memory.\n\
> Arguments are FILE OFFSET START END where all except FILE are optional.\n\
> OFFSET will be added to the base address of the file (default zero).\n\
> ! If START and END are given, only the file contents within that range
> (file relative) will be restored to target memory.");
> c->completer = filename_completer;
> /* FIXME: completers for other commands. */
> --- 816,822 ----
> "Restore the contents of FILE to target memory.\n\
> Arguments are FILE OFFSET START END where all except FILE are optional.\n\
> OFFSET will be added to the base address of the file (default zero).\n\
> ! If START and END are given, only the file contents within that range\n\
> (file relative) will be restored to target memory.");
> c->completer = filename_completer;
> /* FIXME: completers for other commands. */