This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: fix unescaped newline


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. */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]