From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15233 invoked by alias); 3 Mar 2019 15:53:03 -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 15225 invoked by uid 89); 3 Mar 2019 15:53:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=backgrounds, emacs, Emacs, customize X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 03 Mar 2019 15:53:01 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h0TQB-0001ua-FK; Sun, 03 Mar 2019 10:52:59 -0500 Received: from [176.228.60.248] (port=2717 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h0TQB-0002FF-3L; Sun, 03 Mar 2019 10:52:59 -0500 Date: Sun, 03 Mar 2019 15:53:00 -0000 Message-Id: <83d0n8eyzw.fsf@gnu.org> From: Eli Zaretskii To: Tom Tromey CC: gdb-patches@sourceware.org In-reply-to: <87mumeb935.fsf@tromey.com> (message from Tom Tromey on Fri, 01 Mar 2019 14:03:58 -0700) Subject: Re: [PATCH 00/16] Add styling to the gdb CLI and TUI References: <20181128001435.12703-1-tom@tromey.com> <83k1kxfzwo.fsf@gnu.org> <8736rja4i8.fsf@tromey.com> <83r2brhw8k.fsf@gnu.org> <87h8cmh1wg.fsf@tromey.com> <83va12gz8j.fsf@gnu.org> <87mumeb935.fsf@tromey.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00022.txt.bz2 A few minor comments and questions related to this feature: . What should be the behavior wrt styling when GDB is used as a back-end debugging engine? E.g., Emacs can act as the GUI front-end to GDB -- should styling be turned off in that case? On Windows, it will be urned off, because Emacs communicates with GDB via pipes, but on Posix hosts Emacs uses pty's, so GDB will think its stdout is a tty device, right? . I'm surprised there's no CLI support for requesting the "inverse-video" style, although the infrastructure does support the corresponding escape sequences. Is that on purpose? . The default foreground color used for addresses, blue, is too dark when the terminal's background is black. Maybe we should change to magenta, which should look OK on both dark and light backgrounds. And one more issue, only tangentially related: if I put on my ~/.gdbinit settings that customize style, older versions of GDB complain when they start up, because they don't know about styles. Is there any way of conditioning scripting commands on the GDB version, or some other way of avoiding such problems? Thanks.