From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10508 invoked by alias); 3 Sep 2013 23:37:50 -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 10496 invoked by uid 89); 3 Sep 2013 23:37:49 -0000 Received: from mail-ie0-f177.google.com (HELO mail-ie0-f177.google.com) (209.85.223.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 03 Sep 2013 23:37:49 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,NO_RELAYS autolearn=ham version=3.3.2 X-HELO: mail-ie0-f177.google.com Received: by mail-ie0-f177.google.com with SMTP id e14so11176614iej.8 for ; Tue, 03 Sep 2013 16:37:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=c755rVGtueYe+vyybJmByOrr+sWzdeKF8l01cNIX4Zw=; b=PimegL7RPQVVP03RyB8rlrATcWEKJdZm63S2l8LR0AqIRLqETqa1bwOfVrAyohwVvS ALOOWr+cZtQxoxiU91yCkyQKsmL/3dR3/S97IAvC0VC88pICBRXRcHj6MBtrYf+8Gwe6 oiarWnkiqU6dew3fnjEHxsZhC0Yazpzf8ptU9xlsbSvSEDzuBPd1Wr64XkRme57bPWHQ IfkYSM/vdv7KTNUCMjBCGkMou5h0uk5y48kyfVTx/nv154FZ4nDN+2mVULFByR7oneHe LbSoRZq3aPJgJrhOT4VAa//M5kptqTRV7VJA+z1fidkWf08ESBNTH7Daxfvsspsw3qW8 /2dg== X-Gm-Message-State: ALoCoQn50VC13oGVhQx0+RdAuCrMKoWVp+aJPh14O2IDlvvRgHXR5/Sfk4svYcN7umcKQYca/n+4O61nLXj68NRZpuuW/M90d3YxMZfTHmG9bejBMIJOzRHXspxtqSLo+WPRwEikwfBpn9Df7atzG/768rVkmCTTzHEbvDID4Q+cwjemdEu0/nRX6zJwjuAo6zFIGq9mGBZc MIME-Version: 1.0 X-Received: by 10.50.55.65 with SMTP id q1mr17873578igp.4.1378251467522; Tue, 03 Sep 2013 16:37:47 -0700 (PDT) Received: by 10.64.26.131 with HTTP; Tue, 3 Sep 2013 16:37:47 -0700 (PDT) In-Reply-To: <20130903012929.GA4379@bob-VirtualBox> References: <20130823005118.GA8847@bob-VirtualBox> <87eh9ka4i8.fsf@fleche.redhat.com> <20130903012929.GA4379@bob-VirtualBox> Date: Tue, 03 Sep 2013 23:37:00 -0000 Message-ID: Subject: Re: gdb/mi or python interface for front end From: Doug Evans To: Bob Rossi Cc: Tom Tromey , gdb Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-09/txt/msg00002.txt.bz2 On Mon, Sep 2, 2013 at 6:29 PM, Bob Rossi wrote: > OK. I'm curious if anyone knows if the MI protocol supports NUL > character bytes in it's output. I'm designing the protocol layer and > it would be convient to know if GDB transmits NUL character bytes > while sending output. (It's probably possible when printing a string > array?) An example would be awesome if so. I looked into this. IWBN if this were documented, otherwise I have to go on what I find and I certainly could have missed something. E.g., I see mi_console_raw_packet calling fputstrn_unfiltered which calls printchar which escapes control characters. I believe the answer is MI output will *never* contain the NUL char, if present it will be quoted as \000. [Again, I would be wrong, so heads up. And corrections are most welcome.]