From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12530 invoked by alias); 20 Jan 2013 15:29:45 -0000 Received: (qmail 12522 invoked by uid 22791); 20 Jan 2013 15:29:44 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 20 Jan 2013 15:29:39 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 630F72E3A4; Sun, 20 Jan 2013 10:29:38 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZsEQwGQVzsRb; Sun, 20 Jan 2013 10:29:38 -0500 (EST) Received: from [192.168.88.47] (burl-mse-71-255-143-190.static.ngn.east.myfairpoint.net [71.255.143.190]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 27C202E11C; Sun, 20 Jan 2013 10:29:38 -0500 (EST) Message-ID: <50FC0D53.7020403@adacore.com> Date: Sun, 20 Jan 2013 15:29:00 -0000 From: Robert Dewar User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Matt Rice CC: Tom Tromey , Kevin Pouget , Surya Kiran Gullapalli , gdb@sourceware.org Subject: Re: Colors in gdb References: <87fw22jq1g.fsf@fleche.redhat.com> <8738y2jmmb.fsf@fleche.redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 X-SW-Source: 2013-01/txt/msg00068.txt.bz2 On 1/20/2013 10:13 AM, Matt Rice wrote: > maybe i'm old in not liking the idea of making these work with the > standard 'print' command, because the escape sequences are terminal > type dependent, which is IMO fine for a prompt set by a gdbinit, but > less so for a pretty printer distributed with a library... > this opinion is only strengthened by considering a std::string > containing an escape sequence. I strongly dislike ANY color stuff creeping into gdb output. Color stuff is a big menace when stuff is saved to files, or pasted and emailed etc etc. > i'm fairly steadfast that just having random escape sequences embedded > in pretty printers as i implemented it is entirely the wrong thing to > do, and we need some level of indirection that can be set in .gdbinit > that pretty printers can query I agree