From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6187 invoked by alias); 18 Nov 2008 21:46:19 -0000 Received: (qmail 6165 invoked by uid 22791); 18 Nov 2008 21:46:19 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 18 Nov 2008 21:45:39 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 859C110A04; Tue, 18 Nov 2008 21:45:36 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 5B53B1059D; Tue, 18 Nov 2008 21:45:36 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1L2YO7-0000Md-Js; Tue, 18 Nov 2008 16:45:35 -0500 Date: Wed, 19 Nov 2008 13:11:00 -0000 From: Daniel Jacobowitz To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Re: [RFC] output remote protocol timestamps with "set debug remote" Message-ID: <20081118214535.GA678@caradoc.them.org> Mail-Followup-To: Pedro Alves , gdb-patches@sourceware.org References: <200811141850.28537.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200811141850.28537.pedro@codesourcery.com> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes 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-11/txt/msg00487.txt.bz2 On Fri, Nov 14, 2008 at 06:50:28PM +0000, Pedro Alves wrote: > I'm making use of this: > > /* Debugging level. 0 is off, and non-zero values mean to print some debug > information (higher values, more information). */ > extern int remote_debug; > > ... to enable timestamps, you do "set debug remote 2". level 1 > still outputs the same as usual. It's such a good idea, that it's already there :-) "set debug timestamp". However, I'd never tried it with remote; it clearly does not work right for multiple printf calls in a single debugging message. I'd suggest fixing that, instead. 1227044669:904148 Sending packet: 1227044669:904155 $1227044669:904161 q1227044669:904166 S1227044669:904172 y1227044669:904177 m1227044669:904182 b1227044669:904188 o1227044669:904193 l1227044669:904198 :1227044669:904205 :1227044669:904211 #1227044669:904217 51227044669:904222 b1227044669:904228 ...1227044669:904279 Ack -- Daniel Jacobowitz CodeSourcery