From patchwork Thu Nov 13 12:54:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Doug Evans X-Patchwork-Id: 3700 Received: (qmail 10467 invoked by alias); 13 Nov 2014 12:55:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 10436 invoked by uid 89); 13 Nov 2014 12:55:33 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f172.google.com Received: from mail-pd0-f172.google.com (HELO mail-pd0-f172.google.com) (209.85.192.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 13 Nov 2014 12:55:30 +0000 Received: by mail-pd0-f172.google.com with SMTP id r10so14563326pdi.3 for ; Thu, 13 Nov 2014 04:55:28 -0800 (PST) X-Received: by 10.70.39.41 with SMTP id m9mr2193883pdk.137.1415883328348; Thu, 13 Nov 2014 04:55:28 -0800 (PST) Received: from sspiff.org (173-13-178-53-sfba.hfc.comcastbusiness.net. [173.13.178.53]) by mx.google.com with ESMTPSA id gy5sm24784265pbc.68.2014.11.13.04.55.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 13 Nov 2014 04:55:27 -0800 (PST) Message-ID: <5464aa3f.85bf440a.76ff.ffff9ad8@mx.google.com> Received: by sspiff.org (sSMTP sendmail emulation); Thu, 13 Nov 2014 04:54:35 -0800 Date: Thu, 13 Nov 2014 04:54:35 -0800 From: Doug Evans To: gdb-patches@sourceware.org Subject: [PATCH 16/21] struct symtab split part 2: mi/mi-cmd-file.c X-IsSubscribed: yes This patch contains the changes to mi/mi-cmd-file.c. Full ChangeLog: https://sourceware.org/ml/gdb-patches/2014-11/msg00233.html 2014-11-12 Doug Evans diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c index 1bc5867..161a054 100644 --- a/gdb/mi/mi-cmd-file.c +++ b/gdb/mi/mi-cmd-file.c @@ -55,7 +55,9 @@ mi_cmd_file_list_exec_source_file (char *command, char **argv, int argc) ui_out_field_string (uiout, "fullname", symtab_to_fullname (st.symtab)); - ui_out_field_int (uiout, "macro-info", st.symtab->macro_table ? 1 : 0); + ui_out_field_int (uiout, "macro-info", + COMPUNIT_MACRO_TABLE + (SYMTAB_COMPUNIT (st.symtab)) != NULL); } /* A callback for map_partial_symbol_filenames. */ @@ -80,6 +82,7 @@ void mi_cmd_file_list_exec_source_files (char *command, char **argv, int argc) { struct ui_out *uiout = current_uiout; + struct compunit_symtab *cu; struct symtab *s; struct objfile *objfile; @@ -89,8 +92,8 @@ mi_cmd_file_list_exec_source_files (char *command, char **argv, int argc) /* Print the table header. */ ui_out_begin (uiout, ui_out_type_list, "files"); - /* Look at all of the symtabs. */ - ALL_SYMTABS (objfile, s) + /* Look at all of the file symtabs. */ + ALL_FILETABS (objfile, cu, s) { ui_out_begin (uiout, ui_out_type_tuple, NULL);