From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95246 invoked by alias); 24 Jan 2020 15:23:15 -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 95238 invoked by uid 89); 24 Jan 2020 15:23:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Jan 2020 15:23:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579879392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nCz1zHz2CVAqmrWYn8oFNNhUytZjAQ9pFca5/rBy3a4=; b=eE3IUx1MoqJgs4YbMvinV0cRhvlnfgTIEMfubxjpcJmkYzn8pYXirfBLX9LPO48XI/U1M3 i+wcSWD+VBrdeReRnNrvAQsYF6zLYfNBLo2S5bGyAC6AOEJ3cZB/w1z01ALXGk4vV2gXkl i19tmSuUc79IP90kQXMBKJW/U1H4138= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-210-Z0Ahwx7RML65I1IOMg-NVw-1; Fri, 24 Jan 2020 10:23:10 -0500 Received: by mail-wm1-f72.google.com with SMTP id y24so922538wmj.8 for ; Fri, 24 Jan 2020 07:23:10 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8a0:f909:7b00:56ee:75ff:fe8d:232b? ([2001:8a0:f909:7b00:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id z21sm7527349wml.5.2020.01.24.07.23.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 24 Jan 2020 07:23:08 -0800 (PST) Subject: Re: [PATCH] Move gdbserver to top level To: Tom Tromey , gdb-patches@sourceware.org References: <87d0bf45up.fsf@tromey.com> From: Pedro Alves Message-ID: <7ceebbb7-b2f7-3d4a-1d8a-f31310badbe8@redhat.com> Date: Fri, 24 Jan 2020 15:23:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <87d0bf45up.fsf@tromey.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2020-01/txt/msg00804.txt.bz2 On 1/19/20 7:13 PM, Tom Tromey wrote: > > +# Only allow gdbserver on some systems. > +build_gdbserver= > +case "$host" in > +aarch64*-*-linux*) > + # Target: AArch64 linux > + build_gdbserver=yes > + ;; > + > +arm*-wince-pe | arm*-*-mingw32ce*) > + # Target: ARM based machine running Windows CE (win32) > + build_gdbserver=yes > + ;; > +arm*-*-linux*) > + # Target: ARM based machine running GNU/Linux > + build_gdbserver=yes > + ;; > +bfin-*-*linux*) > + # Target: Blackfin Linux > + gdb_target_obs="bfin-tdep.o bfin-linux-tdep.o linux-tdep.o" > + build_gdbserver=yes > + ;; > +i[34567]86-*-nto*) > + # Target: Intel 386 running qnx6. > + build_gdbserver=yes > + ;; > +i[34567]86-*-linux*) > + # Target: Intel 386 running GNU/Linux > + build_gdbserver=yes > + ;; > +i[34567]86-*-cygwin*) > + # Target: Intel 386 running win32 > + build_gdbserver=yes > + ;; > +i[34567]86-*-mingw32*) > + # Target: Intel 386 running win32 > + build_gdbserver=yes > + ;; > +ia64-*-linux*) > + # Target: Intel IA-64 running GNU/Linux > + build_gdbserver=yes > + ;; > +m32r*-*-linux*) > + # Target: Renesas M32R running GNU/Linux > + build_gdbserver=yes > + ;; > +m68*-*-linux*) > + # Target: Motorola m68k with a.out and ELF > + build_gdbserver=yes > + ;; > +mips*-*-linux*) > + # Target: Linux/MIPS > + build_gdbserver=yes > + ;; > +or1k*-*-linux*) > + # Target: OpenCores OpenRISC 1000 32-bit running Linux > + build_gdbserver=yes > + ;; > + > +powerpc*-*-linux*) > + # Target: PowerPC running Linux > + build_gdbserver=yes > + ;; > +s390*-*-linux*) > + # Target: S390 running Linux > + build_gdbserver=yes > + ;; > +score-*-*) > + # Target: S+core embedded system > + build_gdbserver=yes > + ;; > +sh*-*-linux*) > + # Target: GNU/Linux Super-H > + build_gdbserver=yes > + ;; > +sparc-*-linux*) > + # Target: GNU/Linux SPARC > + build_gdbserver=yes > + ;; > +sparc64-*-linux*) > + # Target: GNU/Linux UltraSPARC > + build_gdbserver=yes > + ;; > +tilegx-*-linux*) > + # Target: TILE-Gx > + build_gdbserver=yes > + ;; > +x86_64-*-linux*) > + # Target: GNU/Linux x86-64 > + build_gdbserver=yes > + ;; > +x86_64-*-mingw* | x86_64-*-cygwin*) > + # Target: MingW/amd64 > + build_gdbserver=yes > + ;; > +xtensa*-*-*linux*) > + # Target: GNU/Linux Xtensa > + build_gdbserver=yes > + ;; > +esac > + > +if test "x$build_gdbserver" = x; then > + noconfigdirs="$noconfigdirs gdbserver" > +fi This should really be done by sourcing a file in gdbserver/ If we do that, then the info about whether a system supports gdbserver is contained under gdbserver/, and does not require syncing with gcc whenever is changes. See the section starting at: # Disable libatomic on unsupported systems. Thanks, Pedro Alves