From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by sourceware.org (Postfix) with ESMTPS id 2AB913982EFD for ; Sat, 19 Sep 2020 09:48:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2AB913982EFD Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x335.google.com with SMTP id e17so7478826wme.0 for ; Sat, 19 Sep 2020 02:48:06 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=awOjN42hWp22HAU1pwzByKDKJmPqFR+foRvC3woyIEw=; b=RJjxjBHSGjKXf6M6I4L0jsT0fJ5MEpbVIX9o5h9Ifyc+QzlHM57deceC8s7+WA7vLr Vfv1l/pwblefr65eNeyVfpc8OYzIwuyMCUHHLWnCDQrhx4ax+QUyU4IQfbaMdNWplLXO SUZUkAR9fLAt/dHXOPMLTmSHk6phwlEh9qIozSmw+HPEghhm3LAgoL73BNMncwdQI5tw SJ6TowYowGouZ6h+8Q89CgslPnk9XE4AdB1PTvXFDLebW4Gk9rVt85YCLFInkxbo6jpW JS1Qp3TT5hVluXD9wIuqr6FEQyJuGVqjIMZT0njXvwLL11bYZn/rOHnqVd3hm4Y1wBu8 dXaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=awOjN42hWp22HAU1pwzByKDKJmPqFR+foRvC3woyIEw=; b=OFIyaTjE7uIkxsLP+9aTvcZqZlTdTF60zDCi2oeARHr4yclY8d2V/9At4J09nhGRlZ 6H3s+e8n7OJm53EP6dzAnmOgfELL92AlgMCmKgqvV9FkUmm9fAQnIqNGz1989xZwURpT 7UQD9dCEc7CgHCy4K7pOwclXeuScBjp0UDwYZlXhliiU1vmVYiIXE4Ie0Pc2PZihJE8J VCzOkmHrR1w1w30q5dF4fwkQbWtyYEx7Av5n2LPseW43lEoyMOTiW+dhwzAAA19+WWWa FpJBLDEFTJa2KyxzhSpnnJdfjeAEJMQvAlfAs+UN/WPMiyCMD1AFVK3neiWyQiDPq64e dOtw== X-Gm-Message-State: AOAM533Rz0UWBbi9osQQZPAOSpflx77t22WW7LNsmfLa22quCY4YX3I+ C01CizABGZDFo4LKVAKuCPsEZiwrmIvZyA== X-Google-Smtp-Source: ABdhPJzhlr1tY6D5gJs4Auec2CPdoaEozz6serrTopvJawG7Bua7qLc7eUOZJX1sYEdcoRUJxFQmNw== X-Received: by 2002:a05:600c:21c4:: with SMTP id x4mr20274840wmj.107.1600508885042; Sat, 19 Sep 2020 02:48:05 -0700 (PDT) Received: from localhost (host31-53-80-104.range31-53.btcentralplus.com. [31.53.80.104]) by smtp.gmail.com with ESMTPSA id t203sm10279498wmg.43.2020.09.19.02.48.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Sep 2020 02:48:04 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCHv3 0/2] Fortran Array Slicing and Striding Support Date: Sat, 19 Sep 2020 10:47:59 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Sep 2020 09:48:07 -0000 Since v2 of this series: - Patches 1 to 4 have been dropped, replaced by Pedro's already committed enum_flags reworking. - Patches 5, 6, 7, and 9 have been committed, these were refactor, testsuite fixes, and a change in whitespace output that I thought was an obvious improvement, so I just comitted these. The remaining two patches are the ones that I really think need some review before I can merge them. All feedback is welcome. Thanks, Andrew --- Andrew Burgess (2): gdb: Convert enum range_type to a bit field enum gdb/fortran: Add support for Fortran array slices at the GDB prompt gdb/ChangeLog | 52 ++ gdb/Makefile.in | 1 + gdb/NEWS | 13 + gdb/doc/ChangeLog | 7 + gdb/doc/gdb.texinfo | 30 + gdb/expprint.c | 53 +- gdb/expression.h | 27 +- gdb/f-array-walker.h | 255 +++++++ gdb/f-exp.y | 52 +- gdb/f-lang.c | 704 ++++++++++++++++-- gdb/f-lang.h | 19 +- gdb/f-valprint.c | 190 ++--- gdb/gdbtypes.c | 12 +- gdb/parse.c | 24 +- gdb/rust-exp.y | 21 +- gdb/rust-lang.c | 25 +- gdb/testsuite/ChangeLog | 10 + .../gdb.fortran/array-slices-bad.exp | 69 ++ .../gdb.fortran/array-slices-bad.f90 | 42 ++ .../gdb.fortran/array-slices-sub-slices.exp | 111 +++ .../gdb.fortran/array-slices-sub-slices.f90 | 96 +++ gdb/testsuite/gdb.fortran/array-slices.exp | 267 ++++++- gdb/testsuite/gdb.fortran/array-slices.f90 | 364 ++++++++- gdb/testsuite/gdb.fortran/vla-sizeof.exp | 4 +- 24 files changed, 2129 insertions(+), 319 deletions(-) create mode 100644 gdb/f-array-walker.h create mode 100644 gdb/testsuite/gdb.fortran/array-slices-bad.exp create mode 100644 gdb/testsuite/gdb.fortran/array-slices-bad.f90 create mode 100644 gdb/testsuite/gdb.fortran/array-slices-sub-slices.exp create mode 100644 gdb/testsuite/gdb.fortran/array-slices-sub-slices.f90 -- 2.25.4