From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 68580 invoked by alias); 8 Aug 2018 16:00:04 -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 68486 invoked by uid 89); 8 Aug 2018 16:00:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-wm0-f66.google.com Received: from mail-wm0-f66.google.com (HELO mail-wm0-f66.google.com) (74.125.82.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Aug 2018 16:00:00 +0000 Received: by mail-wm0-f66.google.com with SMTP id f21-v6so3261197wmc.5 for ; Wed, 08 Aug 2018 09:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2wTF3FDg4Nb7IicA1dmCe/mgTbipWsGZQ9sGkDW6s3Q=; b=bHaCa13arkAiGNDjRoX9PwUPsLY1XfJO1Hywc1gskvEmUp5V1BBchkZi3siNzoWVmd usY/86DhJukRDHctC2pp8sbfd6wdQ9ryxnxQsReIgCtwVdKRHSihzS072+AV8uU/S2Zy Hc7GKxCI9TZKzNL3KydX3Qs0SOVWgcK6kZ1MUwxJGqUsS8DZuGb2byn67/7tinlZoFj/ PgMct4IjEJVNQ+5w2Q+qZ58XXFURGaFs2hZcKkuU/gjhreB8Bc5Z60uuGiDA90E4jR81 ZjJpR6MjDvFNzyivr5ww7c92Ax7cvcETJ/vvlsWmAGMIt8mDKcwQcAZKv0IYP7xSUA/6 RWUQ== Return-Path: Received: from localhost (host81-140-215-41.range81-140.btcentralplus.com. [81.140.215.41]) by smtp.gmail.com with ESMTPSA id l4-v6sm3570115wrv.23.2018.08.08.08.59.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Aug 2018 08:59:57 -0700 (PDT) Date: Wed, 08 Aug 2018 16:00:00 -0000 From: Andrew Burgess To: Jim Wilson Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 5/5] RISC-V: Add configure support riscv*-linux*. Message-ID: <20180808155956.GP3155@embecosm.com> References: <20180808021734.7844-1-jimw@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180808021734.7844-1-jimw@sifive.com> X-Fortune: I'm dressing up in an ill-fitting IVY-LEAGUE SUIT!! Too late... X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] User-Agent: Mutt/1.9.2 (2017-12-15) X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00165.txt.bz2 * Jim Wilson [2018-08-07 19:17:34 -0700]: > This adds the target and native configure support, and the NEWS entries for > the new target and native configurations. > > gdb/ > * Makefile.in (ALLDEPFILES): Add riscv-linux-nat.c, riscv-linux-tdep.c. > * NEWS: Mention new GNU/Linux RISC-V target. > * configure.host: Add riscv*-*-linux*. > * configure.nat: Add riscv*. > * configure.tgt: Add riscv*-*-linux*. I'm not sure if I can approve changes outside of riscv-* files, but if I could I'd approve these :) Thanks, Andrew > --- > gdb/Makefile.in | 4 ++++ > gdb/NEWS | 8 ++++++++ > gdb/configure.host | 2 ++ > gdb/configure.nat | 4 ++++ > gdb/configure.tgt | 6 ++++++ > 5 files changed, 24 insertions(+) > > diff --git a/gdb/Makefile.in b/gdb/Makefile.in > index 8c744d70c0..280b3b1283 100644 > --- a/gdb/Makefile.in > +++ b/gdb/Makefile.in > @@ -752,6 +752,8 @@ ALL_TARGET_OBS = \ > ppc-sysv-tdep.o \ > ppc64-tdep.o \ > ravenscar-thread.o \ > + riscv-linux-nat.o \ > + riscv-linux-tdep.o \ > riscv-tdep.o \ > rl78-tdep.o \ > rs6000-aix-tdep.o \ > @@ -2300,6 +2302,8 @@ ALLDEPFILES = \ > procfs.c \ > ravenscar-thread.c \ > remote-sim.c \ > + riscv-linux-nat.c \ > + riscv-linux-tdep.c \ > riscv-tdep.c \ > rl78-tdep.c \ > rs6000-lynx178-tdep.c \ > diff --git a/gdb/NEWS b/gdb/NEWS > index 669ed2d0eb..62cde1cde2 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -38,6 +38,14 @@ thread apply [all | COUNT | -COUNT] [FLAG]... COMMAND > FLAG arguments allow to control what output to produce and how to handle > errors raised when applying COMMAND to a thread. > > +* New native configurations > + > +GNU/Linux/RISC-V riscv*-*-linux* > + > +* New targets > + > +GNU/Linux/RISC-V riscv*-*-linux* > + > *** Changes in GDB 8.2 > > * The 'set disassembler-options' command now supports specifying options > diff --git a/gdb/configure.host b/gdb/configure.host > index 6bcb8da74c..23a2f16399 100644 > --- a/gdb/configure.host > +++ b/gdb/configure.host > @@ -149,6 +149,8 @@ powerpc64*-*-linux*) gdb_host=ppc64-linux > ;; > powerpc*-*-linux*) gdb_host=linux ;; > > +riscv*-*-linux*) gdb_host=linux ;; > + > s390*-*-linux*) gdb_host=linux ;; > > sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu) > diff --git a/gdb/configure.nat b/gdb/configure.nat > index 7611266d86..feddeaa5e0 100644 > --- a/gdb/configure.nat > +++ b/gdb/configure.nat > @@ -267,6 +267,10 @@ case ${gdb_host} in > # Host: PowerPC, running Linux > NATDEPFILES="${NATDEPFILES} ppc-linux-nat.o ppc-linux.o" > ;; > + riscv*) > + # Host: RISC-V, running Linux > + NATDEPFILES="${NATDEPFILES} riscv-linux-nat.o" > + ;; > s390) > # Host: S390, running Linux > NATDEPFILES="${NATDEPFILES} s390-linux-nat.o" > diff --git a/gdb/configure.tgt b/gdb/configure.tgt > index f197160896..5e3bd5de71 100644 > --- a/gdb/configure.tgt > +++ b/gdb/configure.tgt > @@ -517,6 +517,12 @@ s390*-*-linux*) > build_gdbserver=yes > ;; > > +riscv*-*-linux*) > + # Target: Linux/RISC-V > + gdb_target_obs="riscv-linux-tdep.o riscv-tdep.o glibc-tdep.o \ > + linux-tdep.o solib-svr4.o symfile-mem.o linux-record.o" > + ;; > + > riscv*-*-*) > # Target: RISC-V architecture > gdb_target_obs="riscv-tdep.o" > -- > 2.17.1 >