Hi,

Compiling gdb-6.4 on Linux/x86 with Sun C 5.9 leads to a warning:

"cp-name-parser.y", line 1410: warning: dubious escape: \e

Of course \e is not an ANSI C or ISO C escape sequence. The author probably
meant the Escape character, '\033'. Here is a fix.

*** gdb/cp-name-parser.y.bak    2005-05-28 18:48:58.000000000 +0200
--- gdb/cp-name-parser.y        2006-05-07 18:41:56.000000000 +0200
***************
*** 1407,1413 ****
  }
  
  static char backslashable[] = "abefnrtv";
! static char represented[] = "\a\b\e\f\n\r\t\v";
  
  /* Translate the backslash the way we would in the host character set.  */
  static int
--- 1407,1413 ----
  }
  
  static char backslashable[] = "abefnrtv";
! static char represented[] = "\a\b\033\f\n\r\t\v";
  
  /* Translate the backslash the way we would in the host character set.  */
  static int



_______________________________________________
Bug-gdb mailing list
Bug-gdb@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gdb

Reply via email to