From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9336 invoked by alias); 28 Jul 2014 01:03:08 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 9294 invoked by uid 89); 28 Jul 2014 01:03:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 28 Jul 2014 01:02:59 +0000 Received: by mail-pa0-f52.google.com with SMTP id bj1so9459074pad.39 for ; Sun, 27 Jul 2014 18:02:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-type:content-disposition:user-agent; bh=A/ZR1TXcA00aQTzmuQtGRlPXftLqYsEWqW0k4roL5Xk=; b=mXNhyNpTa2EPNpkn73C2t3OD/fGGxRjcEIDLcmgIdPiPKm7RooGY0ZCvDJZPkYs/Ex a5sRzUZ0YF5npwi2kjYnv7y3MplDfmq9waFW2HaZ83b7MnMT9vRiCYq9XS4GBItya5YY 1sINyFxhLqeGmuqSnQXDt20PBGGnwM5XteISfm8rBp1afbhyFzT5FYvvGXymjsYD0Tu+ baAjM1BzA+yWGJQ0rQ3IIgtG+i9jXSdgjcrwhMRofmK0J4y9//Nw2CuuHnasccERMnbd X7M1TnkQflR8j/H5SkDPpLtw2DuA3YdvLmKvVNluLL6ViLnus3rQ0dfUkD/GZuKvjcaU Y00A== X-Gm-Message-State: ALoCoQnP3lWPVi9LXsJ8WlBZPjyPZ/gTAKE4ENiIjXGO0/JSPloJoK2xs417bTL3TCv8MBO1BxUH X-Received: by 10.67.14.193 with SMTP id fi1mr16145563pad.17.1406509374681; Sun, 27 Jul 2014 18:02:54 -0700 (PDT) Received: from linux (ip68-9-64-242.ri.ri.cox.net. [68.9.64.242]) by mx.google.com with ESMTPSA id t5sm15764948pbs.4.2014.07.27.18.02.53 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 27 Jul 2014 18:02:53 -0700 (PDT) Date: Mon, 28 Jul 2014 01:03:00 -0000 From: Bob Rossi To: gdb@sourceware.org Subject: GDB/MI escape characters Message-ID: <20140728010303.GA10702@linux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-07/txt/msg00028.txt.bz2 Hi, Does anyone know what characters GDB escapes in the GDB/MI protocol above and beyond what would otherwise be escaped from the CLI? For instance if i print the variable p, char *p = "aaa\"aaa\naaa\raaa\\aaa"; from the cli I get, (gdb) p p $1 = 0x400584 "aaa\"aaa\naaa\raaa\\aaa" from MI I get, p p ~"$2 = 0x400584 \"aaa\\\"aaa\\naaa\\raaa\\\\aaa\"" >From the output I can see that \ and " are escaped in MI output above and beyond what is escaped in the CLI. Are there other characters that would be? The function mi-out.c:mi_field_string might be a clue? Thanks, Bob Rossi