From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28199 invoked by alias); 27 Jul 2019 16:22:46 -0000 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 Received: (qmail 28190 invoked by uid 89); 27 Jul 2019 16:22:46 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-19.4 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*MI:andrew, H*m:andrew, toward, H*RU:sk:mail-wr X-HELO: mail-wr1-f41.google.com Received: from mail-wr1-f41.google.com (HELO mail-wr1-f41.google.com) (209.85.221.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 27 Jul 2019 16:22:45 +0000 Received: by mail-wr1-f41.google.com with SMTP id f9so57385006wre.12 for ; Sat, 27 Jul 2019 09:22:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=from:to:cc:subject:date:message-id; bh=s/O79jOOG1e5QRd4AU2KfZyrwxOxh7EvlWBvQK0Pazg=; b=BamFYWoTnwIrdCwQJj8l+QhrjzFMbx6jsvwmgcq1ukwA582UWYxPeqRYVoumBbQ4mb jr8C+VK8wdz8iAdPTaPybGWugtRtBjE/tdWJ4RtWvY0Z+cBNEWRnMEyeLBHydzqUm8WG FhY7fsaXkC/rLmR9drucXDM++5ITWmWVzY++ItVhJhlC1LOVcUsrnslxLqqenh0+epQJ KYXEcjZovWTHhpehwqSsx0urQUljM1YKi6mx+s0EnrhA6ZiAUGQlnJb9bR/s7HW7brb1 wESLxVSs+TErNfGLTeJ3Ec1Oe4rEvsHFZZ6sgj47y4/KQ/cGIPa/LJ4iFt00ZTIa77UY vZrw== Return-Path: Received: from localhost (188.29.165.26.threembb.co.uk. [188.29.165.26]) by smtp.gmail.com with ESMTPSA id o7sm48244852wmf.43.2019.07.27.09.22.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 27 Jul 2019 09:22:42 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Richard Bunt , Andrew Burgess Subject: [PATCH 0/7] Fortran info types, info modules, info module ... Date: Sat, 27 Jul 2019 16:22:00 -0000 Message-Id: X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00608.txt.bz2 A set of patches working toward the goal of adding some new commands related to Fortran modules. #1 - Not Fortran related at all, just adds a new flag to the "info functions" and "info variables" commands. #2 - In preparation for patch #3. #3 - Ensure Fortran variables from modules show up in "info variables" output. #4 - Fix "info types" for Fortran. #5 - We create a symbol for each Fortran module, don't show this in the "info types" output. #6 - New command "info modules", list all Fortran modules. #7 - Two new commands "info module functions" and "info module variables", these are like "info functions" and "info variables", but with a module twist. Thanks, Andrew --- Andrew Burgess (7): gdb: Add new -n flag to some info commands gdb: Add an is_declaration field to each symbol gdb/fortran: Include module variables in 'info variables' output gdb/fortran: Implement la_print_typedef for Fortran gdb/fortran: Don't include module symbols when searching for types gdb/fortran: Add new 'info modules' command gdb: Add new commands to list module variables and functions gdb/ChangeLog | 90 ++++++ gdb/NEWS | 24 ++ gdb/cli/cli-utils.c | 65 +--- gdb/cli/cli-utils.h | 39 +-- gdb/doc/ChangeLog | 14 + gdb/doc/gdb.texinfo | 66 +++- gdb/dwarf2read.c | 11 + gdb/f-lang.c | 2 +- gdb/f-lang.h | 5 + gdb/f-typeprint.c | 11 + gdb/psymtab.c | 2 + gdb/python/python.c | 4 +- gdb/stack.c | 77 ++++- gdb/symtab.c | 471 +++++++++++++++++++++++++++-- gdb/symtab.h | 12 +- gdb/testsuite/ChangeLog | 39 +++ gdb/testsuite/gdb.base/info-fun.exp | 97 +++--- gdb/testsuite/gdb.base/info-var-f1.c | 24 ++ gdb/testsuite/gdb.base/info-var-f2.c | 26 ++ gdb/testsuite/gdb.base/info-var.exp | 60 ++++ gdb/testsuite/gdb.base/info-var.h | 18 ++ gdb/testsuite/gdb.fortran/info-modules.exp | 180 +++++++++++ gdb/testsuite/gdb.fortran/info-types.exp | 49 +++ gdb/testsuite/gdb.fortran/info-types.f90 | 72 +++++ gdb/testsuite/gdb.fortran/module.exp | 24 ++ gdb/testsuite/lib/fortran.exp | 12 + 26 files changed, 1323 insertions(+), 171 deletions(-) create mode 100644 gdb/testsuite/gdb.base/info-var-f1.c create mode 100644 gdb/testsuite/gdb.base/info-var-f2.c create mode 100644 gdb/testsuite/gdb.base/info-var.exp create mode 100644 gdb/testsuite/gdb.base/info-var.h create mode 100644 gdb/testsuite/gdb.fortran/info-modules.exp create mode 100644 gdb/testsuite/gdb.fortran/info-types.exp create mode 100644 gdb/testsuite/gdb.fortran/info-types.f90 -- 2.14.5