From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 20B1D385783F for ; Wed, 26 Aug 2020 14:49:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 20B1D385783F 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-wr1-x430.google.com with SMTP id b18so2083574wrs.7 for ; Wed, 26 Aug 2020 07:49:26 -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=EHIQ5ngxTUQdMQthTGvNubTgOu6M32X+Yg49mlEII5o=; b=ZM0a+pQY5bE52KNgST3sBNpLM7W6jDLxlUZCOEegFgf2NCtkXlMiPRhHo6AgNS9Igj wf8QP4GDwjktcUtznw5syIITASAGRvjhljFfFh7UibWeCQJ1XZLCoCpUlzbQqbTB2FNl GeGH4gDEUNBbx6AVcBIfYm5Il6HB4zxOQ++hOm8eMAF0nB3U6FCt013NL5hvmUA0nciA La8ltryvdCehQnfNlgD3DQ6KaTm80xt2agmq5hxza98iJSJ7xClFy0EMgCl3fIBfmAaE 5Gveorzi2S00xainjCnt/NP0scY9Be+yzhLrOaxKBUZjN9P8xdIl0q2pUT66PNkJNNrm wGBQ== 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=EHIQ5ngxTUQdMQthTGvNubTgOu6M32X+Yg49mlEII5o=; b=mrxlAObyJFyrfrxhT6J1BcHTh4TOhjxjrcHFhdVn9cS6OjLj0TkCXAqUNsWZtO//yu jQYHww88AgVoQrEh+YpGQ7cfCY21A3orzcl90s+Zf3q0j+fhdG+75MzxcW533DqZXwe+ CZYQlb3MxTbeRVJct5N8oOFiArbJPPANdsQV/hrKbO5BiUMwP881FhfSAOViTCO/EFp3 JLwF5S2G22uVfTra/XKGMXjW40I1haBwGK2kTmU+nYFXKd+67H1NDT3O3q6ya/iZHoUN 8nJVy8gornf3asecDUQB+DJaG5nMK8kua388H4/jjrDkLTPL7Dp//tQGdycuR/ibbO0Y RuXw== X-Gm-Message-State: AOAM531qrcHloq7I/N/TGZ0nrGM+fpFppQQ8fM9Um8I7qaKise1+HbbZ +ExHuK3jUHeTepu33L3DPEj4R2vDYVLkBQ== X-Google-Smtp-Source: ABdhPJxvtnQ6uKQlhzwFYFqAITi0PM3Ooibd5ngb+JXobpjQ5oij3uqQSbYmLt1FtAULfO2P7lGfjA== X-Received: by 2002:adf:9ed1:: with SMTP id b17mr15890597wrf.227.1598453364853; Wed, 26 Aug 2020 07:49:24 -0700 (PDT) Received: from localhost (host109-148-134-218.range109-148.btcentralplus.com. [109.148.134.218]) by smtp.gmail.com with ESMTPSA id v3sm6033306wmh.6.2020.08.26.07.49.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 07:49:24 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCHv2 00/10] Fortran Array Slicing and Striding Support Date: Wed, 26 Aug 2020 15:49:07 +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=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_ABUSEAT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no 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: Wed, 26 Aug 2020 14:49:27 -0000 Since the V1 series I have rebased these patches on top of Pedro's enum-flags rewrite[1]. As such patches 1 -> 4 should not be reviewed in this sereis, but at[1]. The actual content of the remaining patches has not changed since the V1 series. I'm still keen to get any feedback. Patches 5, 6, 7, and 9 are independent of the earlier patches, and could be merged before the GDB 10 branching if I get positive feedback. Patches 8 and 10 I'd like to leave until after the GDB 10 branch has been created, it's these patches that depend on the earlier 1->4 patch series. All feedback welcome. Thanks, Andrew [1] https://sourceware.org/pipermail/gdb-patches/2020-August/171392.html ---- Andrew Burgess (7): gdb: additional changes to make use of type_instance_flags more gdb/fortran: Clean up array/string expression evaluation gdb/fortran: Move Fortran expression handling into f-lang.c gdb/fortran: Change whitespace when printing arrays gdb: Convert enum range_type to a bit field enum gdb/testsuite: Add missing expected results gdb/fortran: Add support for Fortran array slices at the GDB prompt Pedro Alves (3): Rewrite valid-expr.h's internals in terms of the detection idiom (C++17/N4502) Use type_instance_flags more throughout Rewrite enum_flags, add unit tests, fix problems gdb/ChangeLog | 121 +++ gdb/Makefile.in | 2 + gdb/NEWS | 13 + gdb/avr-tdep.c | 13 +- gdb/btrace.c | 4 +- gdb/compile/compile-c-types.c | 3 +- gdb/compile/compile-cplus-symbols.c | 4 +- gdb/compile/compile-cplus-types.c | 10 +- gdb/doc/ChangeLog | 7 + gdb/doc/gdb.texinfo | 30 + gdb/dwarf2/read.c | 7 +- gdb/eval.c | 227 +---- gdb/expprint.c | 114 ++- gdb/expression.h | 39 +- gdb/f-array-walker.h | 255 ++++++ gdb/f-exp.y | 52 +- gdb/f-lang.c | 779 ++++++++++++++++++ gdb/f-lang.h | 19 +- gdb/f-valprint.c | 187 +++-- gdb/fortran-operator.def | 8 + gdb/ft32-tdep.c | 13 +- gdb/gdbarch.c | 8 +- gdb/gdbarch.h | 16 +- gdb/gdbarch.sh | 10 +- gdb/gdbtypes.c | 70 +- gdb/gdbtypes.h | 15 +- gdb/go-exp.y | 2 +- gdb/parse.c | 25 +- gdb/parser-defs.h | 16 + gdb/record-btrace.c | 10 +- gdb/rust-exp.y | 21 +- gdb/rust-lang.c | 25 +- gdb/s390-tdep.c | 13 +- gdb/stabsread.c | 2 +- gdb/std-operator.def | 8 - gdb/testsuite/ChangeLog | 22 + .../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 | 264 +++++- gdb/testsuite/gdb.fortran/array-slices.f90 | 364 +++++++- .../gdb.fortran/class-allocatable-array.exp | 2 +- gdb/testsuite/gdb.fortran/multi-dim.exp | 2 +- gdb/testsuite/gdb.fortran/vla-sizeof.exp | 4 +- gdb/testsuite/gdb.fortran/vla-type.exp | 6 +- gdb/testsuite/gdb.mi/mi-vla-fortran.exp | 2 +- gdb/type-stack.c | 4 +- gdb/unittests/enum-flags-selftests.c | 586 +++++++++++++ gdbsupport/enum-flags.h | 366 ++++++-- gdbsupport/traits.h | 67 ++ gdbsupport/valid-expr.h | 35 +- 52 files changed, 3505 insertions(+), 685 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 create mode 100644 gdb/unittests/enum-flags-selftests.c -- 2.25.4