From patchwork Fri Jan 19 17:22:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jessica Clarke X-Patchwork-Id: 25459 Received: (qmail 10083 invoked by alias); 19 Jan 2018 17:23:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 10053 invoked by uid 89); 19 Jan 2018 17:23:12 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=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=H*r:501 X-HELO: mail-wr0-f194.google.com Received: from mail-wr0-f194.google.com (HELO mail-wr0-f194.google.com) (209.85.128.194) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jan 2018 17:23:11 +0000 Received: by mail-wr0-f194.google.com with SMTP id 100so2217567wrb.7 for ; Fri, 19 Jan 2018 09:23:11 -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=fIqeyj1E5fN0DLj34NmoWzQlP9bdLgLloY2uhNwookQ=; b=pRMClYQdz7ToI9hhxfupl6cy3FDIOvtPHNhskjK7maplO3iaYGkQg3G+BbGJY2rFOL gwPkSzWj6KcZFEOq+truaWJYnbJ43DsNgmxOD2I48uuW0Hoh/iugfvWD3gGTyPweqf89 uDoJIl0bFetUMq84cbYccrX5i6CryeQmPhHqHqlhLUHoECboLKli/7jRxGUoqvr+HSLW nTnc/GAxVVldZLCjD+xBCvRQEb2YyqXHH7ZmjZhuVG14l8kkYf0ywjjDZrqFfZJ/dzcn /MGdLrKpt04pXk4HlQEGtwELfkWN88R+fZtrDVq20PohIy1cEQcDUtV9iHvuOkQSu6dm 6s6A== X-Gm-Message-State: AKwxytfeu8WYrF0W2dcFhEYSM72c3cxApbi5m2mjbR7XjTZlUbP8Qq5K SAVRYFSHGbETm0h++TsXxxwSlw== X-Google-Smtp-Source: ACJfBouGOj3tLile6n2d1GIeb9n1tmAi/1gQP9Igz0POjkUk5o2Ay4DIi90NXRa2U2wXnFFKgFAYzQ== X-Received: by 10.223.158.131 with SMTP id a3mr10764369wrf.83.1516382589555; Fri, 19 Jan 2018 09:23:09 -0800 (PST) Received: from Jamess-MacBook.local (global-184-7.nat-1.net.cam.ac.uk. [131.111.184.7]) by smtp.gmail.com with ESMTPSA id c24sm14465734wre.10.2018.01.19.09.23.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Jan 2018 09:23:08 -0800 (PST) Received: by Jamess-MacBook.local (Postfix, from userid 501) id CA70E200EC3625; Fri, 19 Jan 2018 17:23:07 +0000 (GMT) From: James Clarke To: gdb-patches@sourceware.org Cc: James Clarke Subject: [PATCH v2 2/2] gdb: Add missing #ifdef USE_THREAD_DB to gdbserver Date: Fri, 19 Jan 2018 17:22:50 +0000 Message-Id: <20180119172250.91520-2-jrtc27@jrtc27.com> In-Reply-To: <20180119172250.91520-1-jrtc27@jrtc27.com> References: <20180119172250.91520-1-jrtc27@jrtc27.com> gdb/ChangeLog: * gdbserver/linux-low.c (handle_extended_wait): Surround call to thread_db_notice_clone with #ifdef USE_THREAD_DB, otherwise linking fails with "undefined reference to `thread_db_notice_clone(thread_info*, ptid_t)'" on architectures without thread_db. --- gdb/gdbserver/linux-low.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index f6a52d5..398cd70 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -661,7 +661,9 @@ handle_extended_wait (struct lwp_info **orig_event_lwp, int wstat) new_lwp->status_pending = status; } +#ifdef USE_THREAD_DB thread_db_notice_clone (event_thr, ptid); +#endif /* Don't report the event. */ return 1;