From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16309 invoked by alias); 19 Oct 2009 20:10:22 -0000 Received: (qmail 16299 invoked by uid 22791); 19 Oct 2009 20:10:21 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 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; Mon, 19 Oct 2009 20:10:14 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id EF5642BACB1; Mon, 19 Oct 2009 16:10:12 -0400 (EDT) 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 hMimCRbk+xUk; Mon, 19 Oct 2009 16:10:12 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id B62BA2BACAF; Mon, 19 Oct 2009 16:10:12 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id 9ABCDF5921; Mon, 19 Oct 2009 22:10:10 +0200 (CEST) Date: Mon, 19 Oct 2009 20:10:00 -0000 From: Joel Brobecker To: Tom Tromey Cc: Paul Pluzhnikov , gdb-patches@sourceware.org Subject: Re: [RFC][patch] Allow to disassemble line. Message-ID: <20091019201010.GE5282@adacore.com> References: <8ac60eac0910080916i5a2eb49an5f21f3b5c7fb96ef@mail.gmail.com> <20091008162350.GA8625@caradoc.them.org> <8ac60eac0910080952p46f15693x6ed339473db0139d@mail.gmail.com> <8ac60eac0910161607k55fee22cs379c5b7635d7b6a@mail.gmail.com> <8ac60eac0910191109v62794c33g6712090912b5c11f@mail.gmail.com> <20091019184853.GA18564@caradoc.them.org> <20091019194030.GB5282@adacore.com> <20091019195643.GB25499@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) 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: 2009-10/txt/msg00452.txt.bz2 > As a general rule, if there is a corresponding MI command, then I think > we should feel free to change CLI output as we like. Agreed. I was mostly thinking of situations where we don't have a terminal (or we have a dumb one). I like the idea of doing this nicely on 99% of the cases with a setting to control the output: If we have a capable terminal, then use colors/boldness. If not, then revert to using the arrow. The setting could be a general "auto/yes/no" setting for using terminal capabilities in CLI display. That being said, saving 3 or 4 characters through the use of font characteristics may since too little a gain for the extra code? I really like the idea of not printing the name of the function in the disassembly output, though. I've always had to cut it out when I email portions of a GDB session that includes a disass. -- Joel