From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by sourceware.org (Postfix) with ESMTPS id 1F9E83846077 for ; Fri, 11 Sep 2020 08:29:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1F9E83846077 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=thomas.petazzoni@bootlin.com Received: from windsurf.hq.k.grp (lfbn-tou-1-420-199.w86-206.abo.wanadoo.fr [86.206.245.199]) (Authenticated sender: thomas.petazzoni@bootlin.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 4D580100017; Fri, 11 Sep 2020 08:29:56 +0000 (UTC) Date: Fri, 11 Sep 2020 10:29:55 +0200 From: Thomas Petazzoni To: Christian Biesinger Cc: Reuben Thomas via Gdb , Tom Tromey , Romain Naour Subject: Re: Building just gdbserver ? Message-ID: <20200911102955.71f38097@windsurf.hq.k.grp> In-Reply-To: References: <20200910115339.52495057@windsurf.hq.k.grp> Organization: Bootlin X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2020 08:30:03 -0000 On Thu, 10 Sep 2020 12:34:15 +0200 Christian Biesinger wrote: > On Thu, Sep 10, 2020 at 11:53 AM Thomas Petazzoni > wrote: > > Prior to the move of gdb/gdbserver/ to the top-level > > (919adfe8409211c726c1d05b47ca59890ee648f1), and its use of the common > > gnulib (1a627e7e6c61e97951932e3a9c5fb706efe3ef3e), it was possible to > > build just gdbserver by doing: > > > > $ cd gdb/gdbserver/ > > $ ./configure > > > > This is a feature that was used by the Buildroot build system when we > > only needed to build gdbserver and not the full gdb. > > > > What is now the recommended way to build just gdbserver ? > > See the "Building" section in > https://github.com/bminor/binutils-gdb/blob/master/gdbserver/README Thanks for the pointer, seems useful, I'll give it a try. > > Running the top-level configure script would be annoying, as it checks > > for ncurses, which would make ncurses a mandatory requirement to build > > gdbserver, which by itself doesn't need ncurses. > > I don't believe the toplevel configure script checks for ncurses...? Well, I had missed the --disable-gdb option, and so for me a top-level ./configure would always recurse into gdb/, and gdb/configure.ac does check for ncurses. I'll give it a try with --disable-gdb and "make all-gdbserver" as suggested by the documentation. Thanks ! Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com