From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6793 invoked by alias); 11 Jun 2008 14:07:43 -0000 Received: (qmail 6712 invoked by uid 22791); 11 Jun 2008 14:07:42 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Jun 2008 14:07:24 +0000 Received: (qmail 12372 invoked from network); 11 Jun 2008 14:07:22 -0000 Received: from unknown (HELO localhost) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 11 Jun 2008 14:07:22 -0000 From: Vladimir Prus To: gdb-patches@sources.redhat.com Subject: [mi, doc] mention escape sequences Date: Wed, 11 Jun 2008 19:06:00 -0000 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_dw9TI7JsAvHUn5f" Message-Id: <200806111807.25820.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00224.txt.bz2 --Boundary-00=_dw9TI7JsAvHUn5f Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 507 It does not seem that MI spec ever mentions escape sequence support (where it's supported) or lack of such support. This patch tries to fix that. Note that parse_escape function supports more than C language escape sequences, it seems, but given that the function has no comments on those sequences, and given that manual does not say anything about that either, I don't feel like reverse-engineering the code to document the exact rules. "As in C" as sufficient, I think, for MI manual. OK? - Volodya --Boundary-00=_dw9TI7JsAvHUn5f Content-Type: text/x-diff; charset="utf-8"; name="escape.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="escape.diff" Content-length: 767 Index: gdb/doc/gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.504 diff -u -p -r1.504 gdb.texinfo --- gdb/doc/gdb.texinfo 10 Jun 2008 10:23:53 -0000 1.504 +++ gdb/doc/gdb.texinfo 11 Jun 2008 14:04:34 -0000 @@ -18018,6 +18018,10 @@ list. Each option is identified by a le followed by an optional argument parameter. Options occur first in the parameter list and can be delimited from normal parameters using @samp{--} (this is useful when some parameters begin with a dash). + +@item +Within @var{c-string}, all escape sequences allowed by the C language +are recognized. Escape sequences are not allowed in @var{non-blank-sequence}. @end itemize Pragmatics: --Boundary-00=_dw9TI7JsAvHUn5f--