From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21706 invoked by alias); 10 Jan 2008 03:30:15 -0000 Received: (qmail 21698 invoked by uid 22791); 10 Jan 2008 03:30:14 -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; Thu, 10 Jan 2008 03:29:47 +0000 Received: from kahikatea.snap.net.nz (172.30.255.123.static.snap.net.nz [123.255.30.172]) by viper.snap.net.nz (Postfix) with ESMTP id 3915D3D981B for ; Thu, 10 Jan 2008 16:29:44 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 40D278FC6D; Thu, 10 Jan 2008 16:29:39 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18309.37153.798074.919481@kahikatea.snap.net.nz> Date: Thu, 10 Jan 2008 03:30:00 -0000 To: gdb-patches@sourceware.org Subject: [PATCH: mi-cmd-file.c] X-Mailer: VM 7.19 under Emacs 23.0.50.27 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/msg00224.txt.bz2 Emacs currently uses "info source" as part of it's front end to GDB. This patch allows it to use -file-list-exec-source-file instead. -- Nick http://www.inet.net.nz/~nickrob 2008-01-10 Nick Roberts * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field for preprocessor macro information. *** mi-cmd-file.c.~1.7.~ 2008-01-04 10:24:34.000000000 +1300 --- mi-cmd-file.c 2008-01-10 16:15:10.000000000 +1300 *************** mi_cmd_file_list_exec_source_file(char * *** 59,64 **** --- 59,66 ---- if (st.symtab->fullname) ui_out_field_string (uiout, "fullname", st.symtab->fullname); + ui_out_field_int (uiout, "macro-info", st.symtab->macro_table ? 1 : 0); + return MI_CMD_DONE; }