From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27999 invoked by alias); 16 Mar 2012 14:47:48 -0000 Received: (qmail 27989 invoked by uid 22791); 16 Mar 2012 14:47:47 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Mar 2012 14:47:33 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1S8YRJ-0006ok-2V from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Fri, 16 Mar 2012 07:47:33 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 16 Mar 2012 07:47:32 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Fri, 16 Mar 2012 07:47:31 -0700 Message-ID: <4F63523E.6060900@codesourcery.com> Date: Fri, 16 Mar 2012 14:47:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Subject: Re: [PATCH 1/5] Define target_core_of_thread in gdbserver. References: <1331908966-5527-2-git-send-email-yao@codesourcery.com> In-Reply-To: <1331908966-5527-2-git-send-email-yao@codesourcery.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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 X-SW-Source: 2012-03/txt/msg00611.txt.bz2 On 03/16/2012 10:42 PM, Yao Qi wrote: > In ITSET, it needs to know the core number for a given thread id. It is done > by target_core_of_thread in GDB. In GDBserver, we do have code for this > purpose, but both side is not unified. In this patch, a new macro > `target_core_of_thread' is defined, so code in gdb/common/ can use > target_core_of_thread without #if/#else/#endif wrappings. > Please ignore these patches in this thread. I'll re-send them in a new thread later. -- Yao (齐尧)