From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20796 invoked by alias); 2 Mar 2018 20:09:58 -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 20782 invoked by uid 89); 2 Mar 2018 20:09:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-7.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=observer, H*i:sk:1b9ec42, H*f:sk:1b9ec42, ups X-HELO: mail-wr0-f196.google.com Received: from mail-wr0-f196.google.com (HELO mail-wr0-f196.google.com) (209.85.128.196) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Mar 2018 20:09:56 +0000 Received: by mail-wr0-f196.google.com with SMTP id v18so10638709wrv.0 for ; Fri, 02 Mar 2018 12:09:55 -0800 (PST) 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; bh=1mBUYWV4XD0TwcDIwLz4/rW9KuSnnRjPraNYdn9i82w=; b=qi5rq1Zgb/q93b8p93zkGPuUobJl0UoxGe5b47SlGhc+1eL/8nacaUuCD9DsXpcTgd xatKLRwQrlVewSqVVVcfHyhtMuSOjReRDurs42mk0thWNMunLRKV5Co2HiWO4WTVK6+P 2XprX8qCYdL61isczcfosNwKY54V5ZAkG67xxvjxaDgiEfE1TMAAQcvk39u6CDzS2ygX cG/VTGwuWcAHtEfeKHm/7DRqVoGemzNnESATM8JFpWpxZ879YOwDsl4VRyUxdv0YLYlv goCP+tOcLnFY+SAOsWSSa47OwKqRtTGTsKQB2Bk5vKW2Rk2kDZAvRaGkoOmzrqqMATpz xUmw== X-Gm-Message-State: APf1xPBRCxCiBKDR/ab3IAKV7ArYI/Orq9JAZe5fVbFe4/Wyvw/ivxFv YZRzWR8fmqu2llkAdnsVarwEGqRN X-Google-Smtp-Source: AG47ELtzirxpp12nf02DLKY3OOAt9zNCN48OnXW77hcAyf8nffPvxnS/FsF0rveYpBDCejW1Kh3giw== X-Received: by 10.223.195.147 with SMTP id p19mr6245692wrf.224.1520021394046; Fri, 02 Mar 2018 12:09:54 -0800 (PST) Received: from localhost (host86-164-103-156.range86-164.btcentralplus.com. [86.164.103.156]) by smtp.gmail.com with ESMTPSA id f23sm8113760wra.51.2018.03.02.12.09.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Mar 2018 12:09:53 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Simon Marchi , Eli Zaretskii , Andrew Burgess Subject: [PATCHv3 0/2] Initial RiscV Support Date: Fri, 02 Mar 2018 20:09:00 -0000 Message-Id: In-Reply-To: <1b9ec42a-a0fd-667b-59a5-780e84cce451@simark.ca> References: <1b9ec42a-a0fd-667b-59a5-780e84cce451@simark.ca> X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00070.txt.bz2 Things that have changed in this revision: 1. Now use an observer to clear the inferior data when an inferior exits. This is a pretty common pattern for other users of the inferior data. 2. I've made small code clean ups suggested by Simon. 3. Switched to new/delete as suggested. 4. I've made the riscv test I added a generic test. The test was added to cover a RiscV case, but there's really no reason it had to be RiscV only. Once I tested this on x86-64 I hit a bug in the argument passing on that target, which is fixed in the new first patch of this series. 5. Rebased onto master as of yesterday and retested on all 8 RiscV variants. Still getting the same pass rate as before. Also tested on x86-64 GNU/Linux with no regressions. Thanks, Andrew -- Andrew Burgess (2): gdb/amd64: Ignore zero sized fields when calling functions gdb: Initial baremetal riscv support gdb/ChangeLog | 19 + gdb/MAINTAINERS | 5 + gdb/Makefile.in | 3 + gdb/NEWS | 4 + gdb/amd64-tdep.c | 5 +- gdb/configure.tgt | 5 + gdb/riscv-tdep.c | 2749 +++++++++++++++++++++++++++++ gdb/riscv-tdep.h | 84 + gdb/testsuite/ChangeLog | 6 + gdb/testsuite/gdb.base/float.exp | 2 + gdb/testsuite/gdb.base/nested-structs.c | 159 ++ gdb/testsuite/gdb.base/nested-structs.exp | 189 ++ 12 files changed, 3228 insertions(+), 2 deletions(-) create mode 100644 gdb/riscv-tdep.c create mode 100644 gdb/riscv-tdep.h create mode 100644 gdb/testsuite/gdb.base/nested-structs.c create mode 100644 gdb/testsuite/gdb.base/nested-structs.exp -- 2.14.3