From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74381 invoked by alias); 5 May 2017 19:04:50 -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 74369 invoked by uid 89); 5 May 2017 19:04:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy= X-HELO: mail-wr0-f169.google.com Received: from mail-wr0-f169.google.com (HELO mail-wr0-f169.google.com) (209.85.128.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 05 May 2017 19:04:48 +0000 Received: by mail-wr0-f169.google.com with SMTP id w50so8777160wrc.0 for ; Fri, 05 May 2017 12:04:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=EWOXdY8nDW1D5rQeXK7udTxHBRexe4Yv7oBACTWvmEg=; b=qWnTv8iyQijV/jpUnAAa/D1ap0ci7yng6LCt6IaQ+gFckbLqn339GyseVMvyaxVwKh mMUhGsgt2HSqvfSHozSnFf1Y9afNr2Eoy5XS6m+NSEpOuGhiMbaLxoSz7hVklVdodoBG J6eg+xgCqQUmx5nqyUDxrL8d7lldTUIV5gCEJuT8eJWibVNRf6xqxH8MXKe+ujpBW4Db SZ/Qh8TJeofQcyvIDKzlhGRKXQUoteMjAdX9jhKCqabzNFYF+az7qSGXmE7eUd/36yeG ntCXxUk0GYuV3i8uL1UVCXpjfWF9XXLCMPEUrR+WjLJpASR/GNU8c/FIeo0KdwkOknqs rxwg== X-Gm-Message-State: AN3rC/6dAY6HRshklUz437lDtnaibO6lwHCGC5+OKMLW9G7xqqBru3OG wqyZmSE6VBy1o5ZY X-Received: by 10.223.178.150 with SMTP id g22mr30187061wrd.158.1494011089114; Fri, 05 May 2017 12:04:49 -0700 (PDT) Received: from [192.168.0.102] ([37.189.166.198]) by smtp.gmail.com with ESMTPSA id 133sm3400186wms.22.2017.05.05.12.04.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 May 2017 12:04:48 -0700 (PDT) Subject: Re: [PATCH v6 2/4] Share parts of gdb/gdbthread.h with gdbserver To: Sergio Durigan Junior , GDB Patches References: <1482464361-4068-1-git-send-email-sergiodj@redhat.com> <20170504052954.16936-1-sergiodj@redhat.com> <20170504052954.16936-3-sergiodj@redhat.com> From: Pedro Alves Message-ID: <54b574c1-1e48-9f8e-86df-7b2988b0737d@redhat.com> Date: Fri, 05 May 2017 19:04:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20170504052954.16936-3-sergiodj@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2017-05/txt/msg00149.txt.bz2 On 05/04/2017 06:29 AM, Sergio Durigan Junior wrote: > diff --git a/gdb/common/common-gdbthread.h b/gdb/common/common-gdbthread.h > new file mode 100644 > index 0000000..3e2b991 > --- /dev/null > +++ b/gdb/common/common-gdbthread.h > @@ -0,0 +1,27 @@ > +#ifndef COMMON_GDBTHREAD_H > +#define COMMON_GDBTHREAD_H > + > +struct target_waitstatus; Why add this here? Nothing uses it in this file. > + > +/* Switch from one thread to another. */ > +extern void switch_to_thread (ptid_t ptid); > + > +#endif /* ! COMMON_GDBTHREAD_H */ Thanks, Pedro Alves