PATCH: fix unescaped newline

Jim Blandy jimb@redhat.com
Fri Mar 29 15:34:00 GMT 2002


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.

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



More information about the Gdb-patches mailing list