From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41333 invoked by alias); 29 Nov 2016 15:46:07 -0000 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 Received: (qmail 41315 invoked by uid 89); 29 Nov 2016 15:46:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*M:4877, Sending X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 29 Nov 2016 15:46:04 +0000 Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtp id 1cBkbb-0006xa-Eq from Luis_Gustavo@mentor.com ; Tue, 29 Nov 2016 07:46:03 -0800 Received: from [172.30.5.15] (147.34.91.1) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 29 Nov 2016 07:46:00 -0800 Subject: Re: [PATCH] Don't print too much if remote_debug is on References: <1480433898-19584-1-git-send-email-yao.qi@linaro.org> To: Yao Qi , Reply-To: Luis Machado From: Luis Machado Message-ID: Date: Tue, 29 Nov 2016 15:46:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1480433898-19584-1-git-send-email-yao.qi@linaro.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: svr-orw-mbx-04.mgc.mentorg.com (147.34.90.204) To svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) X-IsSubscribed: yes X-SW-Source: 2016-11/txt/msg00950.txt.bz2 On 11/29/2016 09:38 AM, Yao Qi wrote: > If we turn "remote debug" on and GDB does some vFile operations, > a lot of things will be printed in the screen, which makes > "remote debug" useless. > > This patch changes the code that we don't print messages if > messages are too long, greater than 512. Instead, print > "Sending packet: $vFile:pread:5,3fff,e0d12#c4...Packet received: [16384 bytes omitted]". How about not printing binary data at all and instead print some useful information about contents being sent? Like the number of bytes and maybe how many still need to be read?