From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kf8dHwRLg1/1TgAAWB0awg (envelope-from ) for ; Sun, 11 Oct 2020 14:12:20 -0400 Received: by simark.ca (Postfix, from userid 112) id 727881EF6F; Sun, 11 Oct 2020 14:12:20 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED, MAILING_LIST_MULTI,T_DKIM_INVALID,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 904FB1E58E for ; Sun, 11 Oct 2020 14:12:19 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 231433861870; Sun, 11 Oct 2020 18:12:19 +0000 (GMT) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 76B743857C4E for ; Sun, 11 Oct 2020 18:12:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 76B743857C4E 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-x32a.google.com with SMTP id b127so2350186wmb.3 for ; Sun, 11 Oct 2020 11:12:16 -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=QZnozVxiM4tRVGscJw0dkoHe2jYkGMEp73tvO196U14=; b=YIzmoJHoL/Ez7XrIQ5L/lVjeECLytlyRAld79N7RMFm3s3wRO0yULcGAcJe+ool/85 7oztt3uuMdhqFLuEDswgst5aGJmFvjx29iLMLtaHKxamI1VLNyLj9O9gNg38inCYOgcw kvLh7CIigRPRkppjvhPewK6ZtfhB6MP+dsjcVpclMVlR4uvKbEOBIbA5+mtuKkEEUPmo L1TuTeVJppZ/46NrUnbf63gEQVs6hcG/CuEs1mw3Q48/tAFNoowXk5nDgK+oyASb2xnF lVcGFHhxomu/F6rXbyTHT9jIDT8VxVx4oMuB3EuJP1fXrbiv3/QndNCvwoGkHCElaaBE GQoA== 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=QZnozVxiM4tRVGscJw0dkoHe2jYkGMEp73tvO196U14=; b=nFcmZWCk680Go5JiPAUItCRaG7f+U97mQQydbO3TaGdc06qP2UrLk0dEBmr8XeO5R2 oinqZi+37VRgc3ZzmvdV51dXdUP8/gOER+I6qO0h78uF6guWOAFXoMAvgT47aSTBRoFt uEfzh0wEGzYf7opyl41EmrU5gaO9kU1susjeQJdGpgxKVZx+rIlNLqhAc0Y6P+xUuf+q wVE0drG/18SVwpbXX6R8ByY7UZRB5sB7xe0T3i0LTwuIGipbAYYXe/WxKPyLqeKqzuwn 0qOTtmwAE12dMhdLSXPCY1xNE7qLs/DQYW1dahC58wnzR9T6BiNvuddaQQHpUHQZh4Qa SOKw== X-Gm-Message-State: AOAM530rKwCfCKTwzRwOSFmE1wxmWa50hnwtqu0ilyZgxYS5l3aawaaJ AKhZ6pgBGgpOOGJdWgYn/JkxFBQ30RsR+Q== X-Google-Smtp-Source: ABdhPJz1JGZyMzU1T0fk3ENoSmoQSDiRgVriXME6Ov2w7xROTfO+Is+agTMxBaPZ1qVLB2aQab/o9w== X-Received: by 2002:a1c:38c7:: with SMTP id f190mr7181733wma.47.1602439935283; Sun, 11 Oct 2020 11:12:15 -0700 (PDT) Received: from localhost (host86-130-161-39.range86-130.btcentralplus.com. [86.130.161.39]) by smtp.gmail.com with ESMTPSA id c4sm22214617wme.27.2020.10.11.11.12.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Oct 2020 11:12:14 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Subject: [PATCHv5 0/4] Fortran Array Slicing and Striding Support Date: Sun, 11 Oct 2020 19:12:09 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: , Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" Ping! Since v4: - No documentation changes! - No changes in patches #1 and #2. - Patch #3 is now a small patch containing only the changes to the Fortan array parsing code, and updates to the expression dumping code to match. I'm hoping that splitting this small piece of work out might get it reviewed, in which case I think I can justify merging patches #1, #2, and #3. - Patch #4 contains the bulk of the interesting work, this is the patch that really needs review, especially the change in gdbtypes.c. All feedback welcome. Thanks, Andrew --- Andrew Burgess (4): gdb: Convert enum range_type to a bit field enum gdb: rename 'enum range_type' to 'enum range_flag' gdb/fortran: add support for parsing array strides in expressions gdb/fortran: Add support for Fortran array slices at the GDB prompt gdb/ChangeLog | 77 ++ gdb/Makefile.in | 1 + gdb/NEWS | 13 + gdb/doc/ChangeLog | 7 + gdb/doc/gdb.texinfo | 32 + gdb/expprint.c | 61 +- gdb/expression.h | 33 +- 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 | 28 +- gdb/rust-exp.y | 21 +- gdb/rust-lang.c | 29 +- gdb/testsuite/ChangeLog | 14 + .../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, 2171 insertions(+), 330 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