From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14969 invoked by alias); 30 Jan 2008 03:27:20 -0000 Received: (qmail 14961 invoked by uid 22791); 30 Jan 2008 03:27:20 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jan 2008 03:26:52 +0000 Received: from kahikatea.snap.net.nz (192.31.255.123.static.snap.net.nz [123.255.31.192]) by viper.snap.net.nz (Postfix) with ESMTP id 1FF4D3DA4B0; Wed, 30 Jan 2008 16:26:50 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 159BF8FC6D; Wed, 30 Jan 2008 16:26:47 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18335.61046.331600.553026@kahikatea.snap.net.nz> Date: Wed, 30 Jan 2008 03:32:00 -0000 To: Daniel Jacobowitz Cc: gdb-patches@sourceware.org Subject: Re: [PATCH: mi-cmd-file.c] In-Reply-To: <20080130030434.GA13818@caradoc.them.org> References: <18309.37153.798074.919481@kahikatea.snap.net.nz> <20080129180629.GI3773@caradoc.them.org> <18335.55189.966269.492998@kahikatea.snap.net.nz> <20080130030434.GA13818@caradoc.them.org> X-Mailer: VM 7.19 under Emacs 23.0.60.5 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-01/txt/msg00759.txt.bz2 > > Actually Emacs turns tooltips off if there is no macro information in case > > of something like: > > > > #define STOP abort () > > > > and the mouse hovers over STOP. Macro information allows Emacs to ensure > > that a macro doesn't expand to a function first. > > Hmm, that sounds silly. If there's no macro information, GDB won't be > able to expand STOP to a function... Yes, what I've said is silly, but hopefully what I've done isn't. When running in the old mode, as for Emacs 21, Emacs can't tell if the macro expands to a function, so turns off tooltips. In the new mode, it checks to see if the macro expands to a function and if so, doesn't try to print its value (which would call abort () in this case). -- Nick http://www.inet.net.nz/~nickrob