From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: Re: font-lock in machine mode of gdba Date: Wed, 20 Oct 2004 01:38:16 +0900 (JST) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20041020.013816.97281206.jet@gyve.org> References: <16755.10649.857644.666785@farnswood.snap.net.nz> <20041019.112647.212948122.jet@gyve.org> <16757.5765.225553.503676@farnswood.snap.net.nz> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1098204124 11408 80.91.229.6 (19 Oct 2004 16:42:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Oct 2004 16:42:04 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 19 18:41:42 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CJx3N-0005lW-00 for ; Tue, 19 Oct 2004 18:41:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJxAj-0005jA-8P for ged-emacs-devel@m.gmane.org; Tue, 19 Oct 2004 12:49:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CJxAZ-0005ht-6w for emacs-devel@gnu.org; Tue, 19 Oct 2004 12:49:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CJxAW-0005hJ-Pp for emacs-devel@gnu.org; Tue, 19 Oct 2004 12:49:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CJxAW-0005hF-Jd for emacs-devel@gnu.org; Tue, 19 Oct 2004 12:49:04 -0400 Original-Received: from [210.130.136.40] (helo=r-maa.spacetown.ne.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CJx2l-0005bq-GW for emacs-devel@gnu.org; Tue, 19 Oct 2004 12:41:04 -0400 Original-Received: from localhost (h219-110-075-159.catv01.itscom.jp [219.110.75.159]) by r-maa.spacetown.ne.jp (8.11.6) with ESMTP id i9JGf0L05878; Wed, 20 Oct 2004 01:41:00 +0900 (JST) Original-To: nickrob@snap.net.nz In-Reply-To: <16757.5765.225553.503676@farnswood.snap.net.nz> X-Mailer: Mew version 4.0.62 on Emacs 21.3.50 / Mule 5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:28610 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:28610 > > > I think it should at least be consistent with asm-mode where keywords like > > > movl, andl, etc are fontified with font-lock-keyword-face and operands and > > > registers are left unfontified. > > > > I have changed both gdb-ui.el and asm-mode.el; and used the same face in the > > both mode for the same object. Do you think operand fontification is too decorative? > > > > Now font-lock-mode is turn-on in gdb-assembler-mode when global-font-lock-mode is > > true. gdb-assembler-mode-hook is also provided. See the comments at the tail of > > font-core.el. > > I don't know if the operand fontification too decorative but is it logical? > Should a register name have font-lock-variable-face and an address > font-lock-constant-face? I don't use disassembly for debugging or code in > assembler. Perhaps someone who does can comment. I'm using disassembly for hacking and understanding glibc's /lib/ld-linux.so.2 on i386. (gdba is extremely useful.) I feel my definition is not so bad. The face usage is consistent with asm-mode. BTW, What I really need is fontification on x/i commands output. Masatake YAMATO